Errors

Module stricto. export all classes

class stricto.StrictoError(string_format: str, *args: object, **kwargs: object)

Bases: object

Stricto Error main object

Parameters:
  • self – Description

  • string_format (str) – The string for the error Message

  • args (object) – arguments for the string format

  • kwargs (object) – arguments as kwargs for the string format

to_string() str

Return the object as a string

Parameters:

self – Description

Returns:

a string

Return type:

str

class stricto.STypeError(message: str, *args: object, **kwargs: object)

Bases: TypeError, StrictoError

Extented StrictoError with TypeError

class stricto.SAttributeError(message: str, *args: object, **kwargs: object)

Bases: AttributeError, StrictoError

Extented StrictoError with AttributeError

class stricto.SKeyError(message: str, *args: object, **kwargs: object)

Bases: KeyError, StrictoError

Extented StrictoError with KeyError

class stricto.SSyntaxError(message: str, *args: object, **kwargs: object)

Bases: SyntaxError, StrictoError

Extented StrictoError with SyntaxError

class stricto.SConstraintError(message: str, *args: object, **kwargs: object)

Bases: Exception, StrictoError

Extented StrictoError with Exception

This class is dedicated to constraints.

class stricto.SRightError(message: str, *args: object, **kwargs: object)

Bases: Exception, StrictoError

Extented StrictoError with Exception

This class is dedicated to right management.

class stricto.SError(exception: Exception, *args: object, **kwargs: object)

Bases: Exception, StrictoError

Extented StrictoError with Exception

This class is dedicated to all other encapsulated errors.