| description | Learn more about: SafeIntException Class | ||||
|---|---|---|---|---|---|
| title | SafeIntException Class | ||||
| ms.date | 10/22/2018 | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 88bef958-1f48-4d55-ad4f-d1f9581a293a |
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.
class SafeIntException;| Name | Description |
|---|---|
| SafeIntException::SafeIntException | Creates a SafeIntException object. |
The SafeInt class is the only class that uses the SafeIntException class.
SafeIntException
Header: safeint.h
Namespace: msl::utilities
Creates a SafeIntException object.
SafeIntException();
SafeIntException(
SafeIntError code
);code
[in] An enumerated data value that describes the error that occurred.
The possible values for code are defined in the file Safeint.h. For convenience, the possible values are also listed here.
SafeIntNoErrorSafeIntArithmeticOverflowSafeIntDivideByZero