10 #ifndef _EMBEDDED_RPC__PARSEERRORS_H 11 #define _EMBEDDED_RPC__PARSEERRORS_H 15 #include "os_config.h" 23 #define MAX_MESSAGE_SIZE 100 43 :
std::runtime_error(__arg)
58 explicit erpc_error(
const std::string &__arg, std::string errorName)
59 :
std::runtime_error(__arg)
61 , m_errName(errorName)
99 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
114 , m_what(format_string(
"file %s:%d:%d: %s, %s", fileName.c_str(), m_errLoc.m_firstLine, m_errLoc.m_firstChar,
124 virtual const char *what()
const NOEXCEPT NOTHROW;
185 inline void assert_throw_internal(
bool p,
const std::string &&msg)
211 #endif // _EMBEDDED_RPC__PARSEERRORS_H Exception class for syntax errors.
Definition: ParseErrors.h:69
syntax_error2(const std::string &__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:96
erpc_error(const std::string &__arg)
Exception function for eRPC errors.
Definition: ParseErrors.h:42
Exception class for internal errors.
Definition: ParseErrors.h:168
lexical_error(const std::string &__arg)
Exception function for lexical errors.
Definition: ParseErrors.h:142
std::string m_errName
Definition: ParseErrors.h:50
semantic_error(const std::string &__arg)
Exception function for semantic errors.
Definition: ParseErrors.h:159
Exception class for lexical errors.
Definition: ParseErrors.h:134
syntax_error2(const char *__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.h:111
Exception class for syntax errors.
Definition: ParseErrors.h:86
erpc_error(const std::string &__arg, std::string errorName)
Exception function for eRPC errors.
Definition: ParseErrors.h:58
syntax_error(const std::string &__arg)
Exception function for syntax errors.
Definition: ParseErrors.h:77
Token location in the source file.
Definition: Token.h:25
Exception class for semantic errors.
Definition: ParseErrors.h:151
std::string m_message
Definition: ParseErrors.h:49
internal_error(const std::string &__arg)
Exception function for internal errors.
Definition: ParseErrors.h:176
Base exception class for eRPC errors.
Definition: ParseErrors.h:34