Skip to content

Exceptions

Source code in src/specklepy/logging/exceptions.py
5
6
7
8
def __init__(self, message: str, exception: Exception = None) -> None:
    super().__init__()
    self.message = message
    self.exception = exception

message instance-attribute

message = message

exception instance-attribute

exception = exception
Source code in src/specklepy/logging/exceptions.py
def __init__(
    self, message: str, errors: Optional[List[Any]] = None, data=None
) -> None:
    super().__init__(message=message)
    self.errors = errors
    self.data = data

errors instance-attribute

errors = errors

data instance-attribute

data = data
Source code in src/specklepy/logging/exceptions.py
def __init__(self, message: str, obj: Any, exception: Exception = None) -> None:
    super().__init__(message=message, exception=exception)
    self.obj = obj
    self.unhandled_type = type(obj)

obj instance-attribute

obj = obj

unhandled_type instance-attribute

unhandled_type = type(obj)
Source code in src/specklepy/logging/exceptions.py
def __init__(self, *args: object) -> None:
    super().__init__(*args)