pitchtypes.errors.CustomTypeError

exception pitchtypes.errors.CustomTypeError(message, **kwargs)

TypeErrors that have a default message that can be extended. Default messages should be defined without trailing punctuation.

Examples:

>>> raise CustomTypeError
TypeError.
>>> raise CustomTypeError("This is a custom message.")
TypeError: This is a custom message.