smif package

smif

Subpackages

Submodules

smif.exception module

Holds custom smif exception hierarchy

Exception
+– SmifException
+– SmifDataError

+– SmifDataNotFoundError +– SmifDataExistsError +– SmifDataMismatchError +– SmifDataReadError +– SmifDataInputError

+– SmifModelRunError +– SmifValidationError

exception smif.exception.SmifDataError[source]

Bases: SmifException

Errors raised by the Store

exception smif.exception.SmifDataExistsError[source]

Bases: SmifDataError

Raise when some data is found unexpectedly

exception smif.exception.SmifDataInputError(component, error, message)[source]

Bases: SmifDataError

Raise when unable to write data because it does not meet specification and can be addressed to a specific (user-interface) input field

E.g. - component: description - unable to write a description shorter than 5 characters - We require a description so you can identify your system-of-systems

configuration throughout your project.

exception smif.exception.SmifDataMismatchError[source]

Bases: SmifDataError

Raise when some data doesn’t match the context

E.g. when updating an object by id, the updated object’s id must match the id provided separately.

exception smif.exception.SmifDataNotFoundError[source]

Bases: SmifDataError

Raise when some data is not found

exception smif.exception.SmifDataReadError[source]

Bases: SmifDataError

Raise when unable to read data

E.g. unable to handle file type or connect to database

exception smif.exception.SmifException[source]

Bases: Exception

The base class for all errors raised in smif

exception smif.exception.SmifModelRunError[source]

Bases: SmifException

Raise when model run requirements are not satisfied

exception smif.exception.SmifTimestepResolutionError[source]

Bases: SmifException

Raise when timestep cannot be resolved

exception smif.exception.SmifValidationError[source]

Bases: SmifException

Custom exception to use for parsing validation.