Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.7 KB

safeintexception-class.md

File metadata and controls

68 lines (45 loc) · 1.7 KB
descriptiontitlems.datems.topicf1_keywordshelpviewer_keywordsms.assetid
Learn more about: SafeIntException Class
SafeIntException Class
10/22/2018
reference
SafeIntException Class
SafeIntException
SafeIntException.SafeIntException
SafeIntException::SafeIntException
SafeIntException class
SafeIntException, constructor
88bef958-1f48-4d55-ad4f-d1f9581a293a

SafeIntException Class

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

classSafeIntException;

Members

Public Constructors

NameDescription
SafeIntException::SafeIntExceptionCreates 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.

  • SafeIntNoError
  • SafeIntArithmeticOverflow
  • SafeIntDivideByZero
close