|
RTC Toolkit
0.1.0-alpha
|
Base class for the exceptions thrown by the client API. More...
#include <exceptions.hpp>
Public Types | |
| typedef std::chrono::system_clock | clock_t |
| The clock to use for determining the exception creation time. More... | |
Public Member Functions | |
| CiiException (const std::string &message) | |
| Constructor. More... | |
| template<typename ... Args> | |
| CiiException (const std::string &formatter, Args ... args) | |
| Constructor that takes a formatter string and additional parameters to build the exception message. More... | |
| virtual | ~CiiException ()=default |
| Destructor. More... | |
| virtual std::string | getCiiType () const |
| virtual std::string | getCiiMethodName () const |
| virtual std::string | getCiiClassName () const |
| virtual std::string | getCiiFileName () const |
| virtual std::string | getCiiHostName () const |
| virtual std::string | getCiiStackTrace () const |
| virtual std::vector< std::string > | getCiiExceptionStack () const |
| virtual std::string | getCiiMessage () const |
| virtual std::string | getCiiDetails () const |
| virtual int64_t | getCiiCreationDate () const |
| const std::string | GetCiiStackTrace () const noexcept |
| const boost::stacktrace::stacktrace & | GetStackTrace () const |
| Return the stack trace captured in the exception constructor. More... | |
| const boost::stacktrace::stacktrace & | GetOriginalStackTrace () const |
| Return the stack trace captured in the most nested exception constructor. More... | |
| std::string | GetStackTraceAsString () const |
| Same as GetStackTrace() but convert the trace to a string. More... | |
| std::string | GetOriginalStackTraceAsString () const |
| Same as GetOriginalStackTrace() but convert the trace to a string. More... | |
| std::string | GetFullStackTraceAsString () const |
| Return the full stack trace (including nested exceptions) More... | |
| std::chrono::time_point< clock_t > | GetTimePoint () const |
| Return the exception creation time as a chrono timepoint. More... | |
| int64_t | GetCreationDate () const |
| Return the exception creation time as number of seconds since Unix Epoch. More... | |
| std::thread::id | GetThreadId () const |
| Return the id of the thread in which the exception was created. More... | |
| int | GetProcessId () const |
| Return the id of the process in which the exception was created. More... | |
| const std::string & | GetHostName () const |
| Return the name of the host in which the exception was created. More... | |
| std::string | GetTypeName () const |
| Return the exception class name. More... | |
| void | SetLineNumber (uint32_t lineNumber) |
| Set the line number in which the exception was thrown. More... | |
| uint32_t | GetLineNumber () const |
| Return the line number in which the exception was thrown. More... | |
| void | SetFunctionName (const std::string &functionName) |
| Set the name of the function in which the exception was thrown. More... | |
| const std::string & | GetFunctionName () const |
| Return the name of the function in which the exception was thrown. More... | |
| void | SetFileName (const std::string &fileName) |
| Set the name of the file in which the exception was thrown. More... | |
| const std::string & | GetFileName () const |
| Return the name of the file in which the exception was thrown. More... | |
| void | SetDetails (const std::string &details) |
| Set the exception details. More... | |
| std::string | GetDetails () const |
| Get the exception details. More... | |
| void | SetClassName (const std::string &className) |
| Set the name of the class in which the exception was thrown. More... | |
| std::string | Dump () const |
| Return all the exception's details. More... | |
| std::string | GetSeverity () const |
| std::string | DumpWithNested () const |
| Return all the exception's details, including details of nested exceptions. More... | |
| const char * | what () const noexcept override |
| const char * | What () const noexcept |
| Return all the exception's details, including details of nested exceptions. More... | |
| void | SetCiiExceptionStack (const std::vector< std::string > &nested_exceptions) |
Base class for the exceptions thrown by the client API.
| typedef std::chrono::system_clock elt::error::CiiException::clock_t |
The clock to use for determining the exception creation time.
Possible values:
|
explicit |
Constructor.
| message | a message describibng the error |
|
inlineexplicit |
Constructor that takes a formatter string and additional parameters to build the exception message.
| formatter | the formatter string, in snprintf format |
| args | the arguments for the formatter string |
|
virtualdefault |
Destructor.
| std::string elt::error::CiiException::Dump | ( | ) | const |
Return all the exception's details.
| std::string elt::error::CiiException::DumpWithNested | ( | ) | const |
Return all the exception's details, including details of nested exceptions.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinenoexcept |
|
inlinevirtual |
| int64_t elt::error::CiiException::GetCreationDate | ( | ) | const |
Return the exception creation time as number of seconds since Unix Epoch.
| std::string elt::error::CiiException::GetDetails | ( | ) | const |
Get the exception details.
| const std::string & elt::error::CiiException::GetFileName | ( | ) | const |
Return the name of the file in which the exception was thrown.
| std::string elt::error::CiiException::GetFullStackTraceAsString | ( | ) | const |
Return the full stack trace (including nested exceptions)
| const std::string & elt::error::CiiException::GetFunctionName | ( | ) | const |
Return the name of the function in which the exception was thrown.
| const std::string & elt::error::CiiException::GetHostName | ( | ) | const |
Return the name of the host in which the exception was created.
| uint32_t elt::error::CiiException::GetLineNumber | ( | ) | const |
Return the line number in which the exception was thrown.
| const boost::stacktrace::stacktrace & elt::error::CiiException::GetOriginalStackTrace | ( | ) | const |
Return the stack trace captured in the most nested exception constructor.
| std::string elt::error::CiiException::GetOriginalStackTraceAsString | ( | ) | const |
Same as GetOriginalStackTrace() but convert the trace to a string.
| int elt::error::CiiException::GetProcessId | ( | ) | const |
Return the id of the process in which the exception was created.
| std::string elt::error::CiiException::GetSeverity | ( | ) | const |
| const boost::stacktrace::stacktrace & elt::error::CiiException::GetStackTrace | ( | ) | const |
Return the stack trace captured in the exception constructor.
| std::string elt::error::CiiException::GetStackTraceAsString | ( | ) | const |
Same as GetStackTrace() but convert the trace to a string.
| std::thread::id elt::error::CiiException::GetThreadId | ( | ) | const |
Return the id of the thread in which the exception was created.
| std::chrono::time_point< CiiException::clock_t > elt::error::CiiException::GetTimePoint | ( | ) | const |
Return the exception creation time as a chrono timepoint.
| std::string elt::error::CiiException::GetTypeName | ( | ) | const |
Return the exception class name.
| void elt::error::CiiException::SetCiiExceptionStack | ( | const std::vector< std::string > & | nested_exceptions | ) |
| void elt::error::CiiException::SetClassName | ( | const std::string & | className | ) |
Set the name of the class in which the exception was thrown.
| className | the name of the class in which the exception was thrown. |
| void elt::error::CiiException::SetDetails | ( | const std::string & | details | ) |
Set the exception details.
| details | new exception details |
| void elt::error::CiiException::SetFileName | ( | const std::string & | fileName | ) |
Set the name of the file in which the exception was thrown.
| fileName | the name of the file in which the exception was thrown |
| void elt::error::CiiException::SetFunctionName | ( | const std::string & | functionName | ) |
Set the name of the function in which the exception was thrown.
| functionName | the name of the function in which the exception was thrown |
| void elt::error::CiiException::SetLineNumber | ( | uint32_t | lineNumber | ) |
Set the line number in which the exception was thrown.
| lineNumber | the line number in which the exception was thrown |
|
inlinenoexcept |
Return all the exception's details, including details of nested exceptions.
|
overridenoexcept |