bluepysnap.exceptions

Exceptions used throughout the library.

Classes

BluepySnapValidationError(level[, message])

Error used for reporting of validation errors.

Exceptions

BluepySnapDeprecationError

SNAP deprecation exception.

BluepySnapDeprecationWarning

SNAP deprecation warning.

BluepySnapError

Base SNAP exception.

exception bluepysnap.exceptions.BluepySnapDeprecationError

SNAP deprecation exception.

exception bluepysnap.exceptions.BluepySnapDeprecationWarning

SNAP deprecation warning.

exception bluepysnap.exceptions.BluepySnapError

Base SNAP exception.

class bluepysnap.exceptions.BluepySnapValidationError(level, message=None)

Error used for reporting of validation errors.

Error.

Parameters:
  • level (str) – error level

  • message (str|None) – message

classmethod fatal(message)

Shortcut for a fatal error.

Parameters:

message (str) – text message

Returns:

Error with level FATAL

Return type:

Error

classmethod warning(message)

Shortcut for a warning.

Parameters:

message (str) – text message

Returns:

Error with level WARNING

Return type:

Error