Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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