36 #ifndef _EMBEDDED_RPC__PARSEERRORS_H 37 #define _EMBEDDED_RPC__PARSEERRORS_H 41 #include "os_config.h" 48 #define MAX_MESSAGE_SIZE 100 68 :
std::runtime_error(__arg)
83 explicit erpc_error(
const std::string &__arg, std::string errorName)
84 :
std::runtime_error(__arg)
86 , m_errName(errorName)
124 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
139 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
149 virtual const char *what()
const NOEXCEPT NOTHROW;
210 inline void assert_throw_internal(
bool p,
const std::string &&msg)
236 #endif // _EMBEDDED_RPC__PARSEERRORS_H Exception class for syntax errors.
Definition: ParseErrors.h:94
syntax_error2(const std::string &__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:121
erpc_error(const std::string &__arg)
Exception function for eRPC errors.
Definition: ParseErrors.h:67
Exception class for internal errors.
Definition: ParseErrors.h:193
lexical_error(const std::string &__arg)
Exception function for lexical errors.
Definition: ParseErrors.h:167
std::string m_errName
Definition: ParseErrors.h:75
semantic_error(const std::string &__arg)
Exception function for semantic errors.
Definition: ParseErrors.h:184
Exception class for lexical errors.
Definition: ParseErrors.h:159
syntax_error2(const char *__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:136
Exception class for syntax errors.
Definition: ParseErrors.h:111
erpc_error(const std::string &__arg, std::string errorName)
Exception function for eRPC errors.
Definition: ParseErrors.h:83
syntax_error(const std::string &__arg)
Exception function for syntax errors.
Definition: ParseErrors.h:102
Token location in the source file.
Definition: Token.h:51
Exception class for semantic errors.
Definition: ParseErrors.h:176
std::string m_message
Definition: ParseErrors.h:74
internal_error(const std::string &__arg)
Exception function for internal errors.
Definition: ParseErrors.h:201
Base exception class for eRPC errors.
Definition: ParseErrors.h:59