On this page
decimal.DecimalException
Prev: decimal.Decimal | Up: decimal | Next: decimal.DecimalTuple
Rel: decimal.Clamped, decimal.Context, decimal.ConversionSyntax, decimal.Decimal
Ref: docs.python.org โ decimal.DecimalException
Tags: #public #python3 #stdlib #decimal
Import
import decimal
from decimal import DecimalException
Signature & Overview
decimal.DecimalException(...)
decimal.DecimalException class.
Methods & Attributes
DecimalException.add_note(self, note, /)โ Add a note to the exceptionDecimalException.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import decimal
assert issubclass(decimal.InvalidOperation, decimal.DecimalException)
assert issubclass(decimal.DecimalException, ArithmeticError)
Gotchas
- Base class for all
decimalsignals/exceptions.
REPL Inspect
from decimal import DecimalException
help(DecimalException)
Linked from
Related notes
- tuts/python3/stdlib_module/decimal/Clamped Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Context Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/ConversionSyntax Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Decimal Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DecimalTuple Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/decimal/DivisionByZero shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionImpossible shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionUndefined shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/FloatOperation shared tags: #decimal, #stdlib