Skip to content

Exceptions

Exceptions generated by the various modules

InvalidConfiguration(message, elements)

Bases: Exception

Configuration error.

Raise this for invalid conf,args and test data.

Source code in enrichsdk/lib/exceptions.py
def __init__(self, message, elements):
    super(InvalidConfiguration, self).__init__(message)
    self.elements = elements

InvalidNode

Bases: Exception

Could not find a transform/model/other subclass of Node with a given name

InvalidParameterValue

Bases: Exception

Could not find any data

InvalidPlugin(message, elements=[])

Bases: Exception

Invalid plugin

Raise this from generic non-transform plugins

Source code in enrichsdk/lib/exceptions.py
def __init__(self, message, elements=[]):
    super(InvalidPlugin, self).__init__(message)
    self.elements = elements

InvalidSkin(message, elements=[])

Bases: Exception

Invalid Skin

Raise this from skin module

Source code in enrichsdk/lib/exceptions.py
def __init__(self, message, elements=[]):
    super(InvalidSkin, self).__init__(message)
    self.elements = elements

InvalidTransform(message, elements=[])

Bases: Exception

Invalid transform.

Raise this from Transform and Model modules.

Source code in enrichsdk/lib/exceptions.py
def __init__(self, message, elements=[]):
    super(InvalidTransform, self).__init__(message)
    self.elements = elements

MissingFile

Bases: Exception

Missing file

MissingInvalidCredentials

Bases: Exception

Missing credentials

NoDataFound

Bases: Exception

Could not find any data

NoMatches

Bases: Exception

Could not find any data

Unsupported(message, elements=[])

Bases: Exception

Unsupported functionality

Raise this if there is missing configuration or unsupported conbombination of parameters.

Source code in enrichsdk/lib/exceptions.py
def __init__(self, message, elements=[]):
    super(Unsupported, self).__init__(message)
    self.elements = elements