Skip to content

Errors

psengine.stix2.errors

STIX2TransformError

STIX2TransformError(
    message='An error occurred. Raise exceptions with a message argument to see additional information',
    *args,
)

Bases: RecordedFutureError

Error raised when invalid parameters are passed to the STIX2 module.

Source code in psengine/errors.py
def __init__(
    self,
    message='An error occurred. Raise exceptions with a message argument to see additional information',  # noqa: E501
    *args,
):
    super().__init__(message, *args)
    self.message = message

message instance-attribute

message = message

__str__

__str__()
Source code in psengine/errors.py
def __str__(self):
    return self.message

UnsupportedConversionTypeError

UnsupportedConversionTypeError(
    message='An error occurred. Raise exceptions with a message argument to see additional information',
    *args,
)

Bases: STIX2TransformError

Error raised when client tries to convert an Recorded FUture type that is not supported.

Source code in psengine/errors.py
def __init__(
    self,
    message='An error occurred. Raise exceptions with a message argument to see additional information',  # noqa: E501
    *args,
):
    super().__init__(message, *args)
    self.message = message

message instance-attribute

message = message

__str__

__str__()
Source code in psengine/errors.py
def __str__(self):
    return self.message