Miscellaneous

Exceptions

Custom exceptions

exception bctools.exceptions.CommandLineError[source]

Raise for a missing or incompatible commanline argument. This is usually caught by the main function and use as input for ArgParser.error()

exception bctools.exceptions.ConfigError[source]

Raise when there is a problem with the configuration

exception bctools.exceptions.InternalLogicError[source]

Raise when the program wanders into an option if shouldn’t.

exception bctools.exceptions.NotSupported[source]

Use when the user tries to access a functionality that is not implemented. Unlike NotYetImplemented, this indicates a feature that is not planned to be implemented in the near future.

exception bctools.exceptions.NotYetImplemented[source]

Raise to indicate that a given feature has not been implemented yet. Only use as a temporary placeholder.

exception bctools.exceptions.ParsingError[source]

Raise when there as a problem parsing a file

exception bctools.exceptions.UserError[source]

Raise to blame the user!