openpectus.lang.exec.errors

Exceptions

EngineNotInitializedError

Common base class for all non-exit exceptions.

EngineError

Common base class for all non-exit exceptions.

UodValidationError

Raised when a UnitOperationDefinition definition/configuration error occurs.

InterpretationError

Raised by interpreter when a general error occurs

NodeInterpretationError

Raised by interpreter when an instruction specific error occurs

InterpretationInternalError

Raised by interpreter if an internal error occurs

MethodError

Common base class for all non-exit exceptions.

MethodEditError

Common base class for all non-exit exceptions.

Module Contents

exception openpectus.lang.exec.errors.EngineNotInitializedError(message, *args)

Bases: Exception

Common base class for all non-exit exceptions.

Parameters:
  • message (str)

  • args (object)

message
__str__()

Return str(self).

Return type:

str

exception openpectus.lang.exec.errors.EngineError(message, user_message=None, exception=None, *args)

Bases: Exception

Common base class for all non-exit exceptions.

Parameters:
  • message (str)

  • user_message (str | Literal['same'] | None)

  • exception (Exception | None)

message
exception = None
__str__()

Return str(self).

Return type:

str

exception openpectus.lang.exec.errors.UodValidationError

Bases: Exception

Raised when a UnitOperationDefinition definition/configuration error occurs.

__str__()

Return str(self).

Return type:

str

exception openpectus.lang.exec.errors.InterpretationError(message, user_message='same', exception=None, *args)

Bases: Exception

Raised by interpreter when a general error occurs

Parameters:
  • message (str)

  • user_message (str | Literal['same'] | None)

  • exception (Exception | None)

  • args (object)

message: str
exception = None
__str__()

Return str(self).

Return type:

str

exception openpectus.lang.exec.errors.NodeInterpretationError(node, message, user_message='same', exception=None, *args)

Bases: InterpretationError

Raised by interpreter when an instruction specific error occurs

Parameters:
node
message: str
exception = None
exception openpectus.lang.exec.errors.InterpretationInternalError(message, exception=None, *args)

Bases: InterpretationError

Raised by interpreter if an internal error occurs

Parameters:
  • message (str)

  • exception (Exception | None)

  • args (object)

message: str
exception = None
exception openpectus.lang.exec.errors.MethodError(message, exception=None)

Bases: Exception

Common base class for all non-exit exceptions.

Parameters:
  • message (str)

  • exception (Exception | None)

message
exception = None
exception openpectus.lang.exec.errors.MethodEditError(message, exception=None)

Bases: MethodError

Common base class for all non-exit exceptions.

Parameters:
  • message (str)

  • exception (Exception | None)