Pecunia 0.9.0-alpha.22
Library using the ISO-4217 currency standard & a fixed monetary unit size
|
▼Npecunia | |
CDomainError | Represents an argument that is outside the realm of the purpose of a function |
CError | A representation of a generalised software issue, complete with the location of the problem |
CExpected | Represents a result value that may either contain a valid value or an error state. Useful for error handling and propagating error states alongside valid results. Provides a way to work with results without using exceptions or nullable types. Ensures type safety by enforcing the presence of either a value or an error |
CFloatingPoint | Represents a safe type for working with floating-point operations |
CInvalidArgument | Represents an argument that is invalid for the state of the function |
CLogicError | Represents a flaw in the logic or a precondition of a function |
CMinor | Represents a monetary value in minor units, with associated currency code and sign/affinity |
CMoney | A representation of a country’s currency supporting basic arithmetic usage and guaranteeing all operations succeed without a loss of precision, overflow, or underflow |
CMoneyParts | Represents the components of a monetary value separated into major, minor, sub-minor units and its associated currency |
COutOfRange | Represents an argument that is out of range for a container |
COverflowError | Represents a flaw that would trigger an overflow operation |
CPECUNIA_EXPORT | Represents a globally accessible, inline constant placeholder for an unexpected error. It is used to handle or signify error states in a consistent and type-safe manner |
CRealNumber | Represents the constituent parts of a real number |
CRuntimeError | Represents a flaw that prevents a function from fulfilling its postcondition or purpose |
CUnderflowError | Represents a flaw that would trigger an underflow operation |
CUnexpected | Represents an unexpected error value |