Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SafeInt class uses SafeIntException to identify why a mathematical operation cannot be completed.
Note
The latest version of this library is located at https://github.com/dcleblanc/SafeInt.
Syntax
class SafeIntException;
Members
Public Constructors
| Name | Description |
|---|---|
| SafeIntException::SafeIntException | Creates a SafeIntException object. |
Remarks
The SafeInt class is the only class that uses the SafeIntException class.
Inheritance Hierarchy
SafeIntException
Requirements
Header: safeint.h
Namespace: msl::utilities
SafeIntException::SafeIntException
Creates a SafeIntException object.
SafeIntException();
SafeIntException(
SafeIntError code
);
Parameters
code
[in] An enumerated data value that describes the error that occurred.
Remarks
The possible values for code are defined in the file Safeint.h. For convenience, the possible values are also listed here.
SafeIntNoErrorSafeIntArithmeticOverflowSafeIntDivideByZero