Skip to content

Errors

psengine.enrich.errors

EnrichmentError

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

Bases: RecordedFutureError

Error raised when there was an error enriching an entity via Lookup or SOAR.

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

EnrichmentLookupError

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

Bases: EnrichmentError

Error raised when there was an error looking up for an entity name or entity id.

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

EnrichmentSoarError

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

Bases: EnrichmentError

Error raised when there was an error performing a SOAR enrichment.

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