Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 SafeIntExceptionobject. | 
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.
- SafeIntNoError
- SafeIntArithmeticOverflow
- SafeIntDivideByZero