10 #ifndef _EMBEDDED_RPC__PARSEERRORS_H 11 #define _EMBEDDED_RPC__PARSEERRORS_H 13 #include "Logging.hpp" 15 #include "os_config.hpp" 23 #define MAX_MESSAGE_SIZE 100 43 :
std::runtime_error(__arg)
58 explicit erpc_error(
const std::string &__arg,
const 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.hpp:69
syntax_error2(const std::string &__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.hpp:96
erpc_error(const std::string &__arg)
Exception function for eRPC errors.
Definition: ParseErrors.hpp:42
Exception class for internal errors.
Definition: ParseErrors.hpp:168
erpc_error(const std::string &__arg, const std::string &errorName)
Exception function for eRPC errors.
Definition: ParseErrors.hpp:58
lexical_error(const std::string &__arg)
Exception function for lexical errors.
Definition: ParseErrors.hpp:142
std::string m_errName
Definition: ParseErrors.hpp:50
semantic_error(const std::string &__arg)
Exception function for semantic errors.
Definition: ParseErrors.hpp:159
Exception class for lexical errors.
Definition: ParseErrors.hpp:134
syntax_error2(const char *__arg, token_loc_t loc, std::string &fileName)
Exception function for syntax errors.
Definition: ParseErrors.hpp:111
Exception class for syntax errors.
Definition: ParseErrors.hpp:86
syntax_error(const std::string &__arg)
Exception function for syntax errors.
Definition: ParseErrors.hpp:77
Token location in the source file.
Definition: Token.hpp:25
Exception class for semantic errors.
Definition: ParseErrors.hpp:151
std::string m_message
Definition: ParseErrors.hpp:49
Definition: AstNode.hpp:26
internal_error(const std::string &__arg)
Exception function for internal errors.
Definition: ParseErrors.hpp:176
Base exception class for eRPC errors.
Definition: ParseErrors.hpp:34