10 #ifndef _EMBEDDED_RPC__PARSEERRORS_H 11 #define _EMBEDDED_RPC__PARSEERRORS_H 15 #include "os_config.h" 22 #define MAX_MESSAGE_SIZE 100 42 :
std::runtime_error(__arg)
57 explicit erpc_error(
const std::string &__arg, std::string errorName)
58 :
std::runtime_error(__arg)
60 , m_errName(errorName)
98 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
113 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
123 virtual const char *what()
const NOEXCEPT NOTHROW;
184 inline void assert_throw_internal(
bool p,
const std::string &&msg)
210 #endif // _EMBEDDED_RPC__PARSEERRORS_H Exception class for syntax errors.
Definition: ParseErrors.h:68
syntax_error2(const std::string &__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:95
erpc_error(const std::string &__arg)
Exception function for eRPC errors.
Definition: ParseErrors.h:41
Exception class for internal errors.
Definition: ParseErrors.h:167
lexical_error(const std::string &__arg)
Exception function for lexical errors.
Definition: ParseErrors.h:141
std::string m_errName
Definition: ParseErrors.h:49
semantic_error(const std::string &__arg)
Exception function for semantic errors.
Definition: ParseErrors.h:158
Exception class for lexical errors.
Definition: ParseErrors.h:133
syntax_error2(const char *__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:110
Exception class for syntax errors.
Definition: ParseErrors.h:85
erpc_error(const std::string &__arg, std::string errorName)
Exception function for eRPC errors.
Definition: ParseErrors.h:57
syntax_error(const std::string &__arg)
Exception function for syntax errors.
Definition: ParseErrors.h:76
Token location in the source file.
Definition: Token.h:25
Exception class for semantic errors.
Definition: ParseErrors.h:150
std::string m_message
Definition: ParseErrors.h:48
internal_error(const std::string &__arg)
Exception function for internal errors.
Definition: ParseErrors.h:175
Base exception class for eRPC errors.
Definition: ParseErrors.h:33