Exception types used by the bytesize class.
Bases: exceptions.Exception
Generic Size error.
Bases: bytesize._errors.SizeUnrepresentableResultError
Error when Size construction is strict.
Bases: bytesize._errors.SizeNonsensicalOpError
Error when requesting a binary operation that doesn’t make sense.
Bases: bytesize._errors.SizeNonsensicalOpError
Error when requesting a binary operation with a nonsense value.
Bases: bytesize._errors.SizeUnsupportedOpError
Error when requesting an operation that doesn’t make sense.
Bases: bytesize._errors.SizeUnrepresentableResultError
Error when requesting an operation that would yield a byte power.
Bases: bytesize._errors.SizeUnsupportedOpError
Error when requesting an operation that yields units that cannot be represented with Size, e.g., when multiplying a Size by a Size.
Bases: bytesize._errors.SizeError
Error when executing unsupported operation on Size.
Bases: bytesize._errors.SizeError
Raised when a parameter has an unacceptable value.
May also be raised when the parameter has an unacceptable type.