IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OIC::Service::ESPlatformException Class Reference

Thrown when OC layer returns an error. More...

Inherits OIC::Service::ESException.

Public Member Functions

 ESPlatformException (OCStackResult reason)
 Constructs an exception with a description. More...
 
OCStackResult getReasonCode () const
 Returns the reason. More...
 
std::string getReason () const
 This function returns description of the exception. More...
 
- Public Member Functions inherited from OIC::Service::ESException
 ESException ()
 Constructs an exception with an empty description. More...
 
 ESException (const std::string &what)
 Constructs an exception with a description. More...
 
 ESException (std::string &&what)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual ~ESException () noexcept
 
virtual const char * what () const noexcept
 Returns the exception description. More...
 

Detailed Description

Thrown when OC layer returns an error.

Constructor & Destructor Documentation

OIC::Service::ESPlatformException::ESPlatformException ( OCStackResult  reason)
explicit

Constructs an exception with a description.

Parameters
reasonOCStackResult The description for the error.

Member Function Documentation

std::string OIC::Service::ESPlatformException::getReason ( ) const

This function returns description of the exception.

OCStackResult OIC::Service::ESPlatformException::getReasonCode ( ) const

Returns the reason.


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