Bash++
Bash++ compiler internal documentation
Public Member Functions | List of all members
bpp::ErrorHandling::SyntaxError Class Reference

An exception thrown when a syntax error is encountered This exception can be constructed from any listener that satisfies the ErrorReportableListener concept, along with an AST node or token that satisfies the ASTNodePtrORToken concept. When thrown, the exception can be caught and printed to display a formatted syntax error message. More...

#include <SyntaxError.h>

Inheritance diagram for bpp::ErrorHandling::SyntaxError:
Inheritance graph
[legend]
Collaboration diagram for bpp::ErrorHandling::SyntaxError:
Collaboration graph
[legend]

Public Member Functions

 SyntaxError ()=delete
 
 SyntaxError (const std::string &msg)=delete
 
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
 SyntaxError (Listener *listener, const T &error_ctx, const std::string &msg)
 
- Public Member Functions inherited from bpp::ErrorHandling::ErrorOrWarning
 ErrorOrWarning ()=delete
 
 ErrorOrWarning (const std::string &msg)=delete
 
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
 ErrorOrWarning (Listener *listener, const T &error_ctx, const std::string &msg)
 
void print () const
 

Additional Inherited Members

- Protected Member Functions inherited from bpp::ErrorHandling::ErrorOrWarning
template<bpp::detail::ErrorReportableListener Listener, bpp::detail::ASTNodePtrORToken T>
void set_from_listener (Listener *listener, T error_ctx)
 
- Protected Attributes inherited from bpp::ErrorHandling::ErrorOrWarning
std::string source_file
 
uint32_t line
 
uint32_t column
 
uint32_t text_length
 
std::vector< std::string > include_chain
 
std::shared_ptr< bpp::bpp_programprogram
 
bool lsp_mode
 
bool is_warning
 

Detailed Description

An exception thrown when a syntax error is encountered This exception can be constructed from any listener that satisfies the ErrorReportableListener concept, along with an AST node or token that satisfies the ASTNodePtrORToken concept. When thrown, the exception can be caught and printed to display a formatted syntax error message.

Constructor & Destructor Documentation

◆ SyntaxError() [1/3]

bpp::ErrorHandling::SyntaxError::SyntaxError ( )
delete

◆ SyntaxError() [2/3]

bpp::ErrorHandling::SyntaxError::SyntaxError ( const std::string &  msg)
explicitdelete

◆ SyntaxError() [3/3]

bpp::ErrorHandling::SyntaxError::SyntaxError ( Listener *  listener,
const T &  error_ctx,
const std::string &  msg 
)
inline

The documentation for this class was generated from the following file: