Internal error. This error is thrown when something unexpected happens during execution.
More...
#include <mip/error.h>
|
| | InternalError (const std::string &message, const std::string &name="InternalError") |
| |
| | InternalError (const std::string &message, const std::map< std::string, std::string > &debugInfo, const std::map< std::string, std::string > sensitiveDebugInfo, const std::string &name="InternalError") |
| |
| std::shared_ptr< Error > | Clone () const override |
| | Clone the error.
|
| |
| char const * | what () const noexcept override |
| | Get the error message.
|
| |
| virtual ErrorType | GetErrorType () const |
| | Get the error type.
|
| |
| const std::string & | GetErrorName () const |
| | Get the error name.
|
| |
| const std::string & | GetMessage (bool maskPII=false) const |
| | Get the error message.
|
| |
| void | SetMessage (const std::string &msg) |
| | Set the error message.
|
| |
| void | AddDebugInfo (const std::string &key, const std::string &value, bool sensitive=false) |
| | Add debug info entry.
|
| |
| const std::map< std::string, std::string > & | GetDebugInfo () const |
| | Get debug info.
|
| |
| virtual | ~Error () |
| |
|
| | Error (const std::string &message, const std::string &name, ErrorType type) |
| |
| | Error (const std::string &message, const std::map< std::string, std::string > debugInfo, const std::map< std::string, std::string > sensitiveDebugInfo, const std::string &name, ErrorType type) |
| |
| std::string | mMessage |
| |
| std::map< std::string, std::string > | mDebugInfo |
| |
| std::string | mName |
| |
| ErrorType | mType |
| |
Internal error. This error is thrown when something unexpected happens during execution.
◆ InternalError() [1/2]
| InternalError::InternalError |
( |
const std::string & | message, |
|
|
const std::string & | name = "InternalError" ) |
|
inlineexplicit |
◆ InternalError() [2/2]
| InternalError::InternalError |
( |
const std::string & | message, |
|
|
const std::map< std::string, std::string > & | debugInfo, |
|
|
const std::map< std::string, std::string > | sensitiveDebugInfo, |
|
|
const std::string & | name = "InternalError" ) |
|
inlineexplicit |
◆ Clone()
| std::shared_ptr< Error > InternalError::Clone |
( |
| ) |
const |
|
inlineoverridevirtual |
Clone the error.
- Returns
- a clone of the error.
Implements Error.
The documentation for this class was generated from the following file: