ledger-core
Public Member Functions | Static Public Attributes | Friends | List of all members
ledger::core::Exception Class Reference
+ Inheritance diagram for ledger::core::Exception:
+ Collaboration diagram for ledger::core::Exception:

Public Member Functions

 Exception (api::ErrorCode code, const std::string &message, Option< std::shared_ptr< void >> userData=Option< std::shared_ptr< void >>())
 
api::ErrorCode getErrorCode () const
 
std::string getMessage () const
 
const Option< std::shared_ptr< void > > & getUserData () const
 
template<typename T >
Option< std::shared_ptr< T > > getTypeUserData () const
 
api::Error toApiError () const
 
virtual const char * what () const noexcept override
 

Static Public Attributes

static const optional< api::ErrorNO_CORE_ERROR
 

Friends

std::ostream & operator<< (std::ostream &os, const Exception &e)
 

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