proxygen
IntException Class Reference
Inheritance diagram for IntException:
AbstractIntException

Public Member Functions

 IntException (int i)
 
int getInt () const override
 
const char * what () const noexceptoverride
 

Private Attributes

int i_
 
std::string what_
 

Detailed Description

Definition at line 30 of file ExceptionWrapperTest.cpp.

Constructor & Destructor Documentation

IntException::IntException ( int  i)
inlineexplicit

Definition at line 32 of file ExceptionWrapperTest.cpp.

32 : i_(i), what_(to<std::string>("int == ", i_)) {}

Member Function Documentation

int IntException::getInt ( ) const
inlineoverridevirtual

Implements AbstractIntException.

Definition at line 34 of file ExceptionWrapperTest.cpp.

34  {
35  return i_;
36  }
const char* IntException::what ( ) const
inlineoverridenoexcept

Definition at line 37 of file ExceptionWrapperTest.cpp.

37  {
38  return what_.c_str();
39  }

Member Data Documentation

int IntException::i_
private

Definition at line 42 of file ExceptionWrapperTest.cpp.

std::string IntException::what_
private

Definition at line 43 of file ExceptionWrapperTest.cpp.


The documentation for this class was generated from the following file: