tan  0.0.1
tanlang::Error Class Reference

Public Member Functions

 Error (const str &error_message)
 
 Error (ErrorType type, const str &error_message)
 
 Error (ErrorType type, Token *start, Token *end, const str &error_message)
 
 Error (ErrorType type, SourceSpan span, const str &error_message)
 
void raise () const
 
ErrorType type () const
 

Static Public Attributes

static umap< ErrorType, str > ERROR_TYPE_ENUM_TO_STRING
 

Detailed Description

Definition at line 47 of file error.h.

Member Data Documentation

◆ ERROR_TYPE_ENUM_TO_STRING

umap< ErrorType, str > Error::ERROR_TYPE_ENUM_TO_STRING
static
Initial value:
{
{ ErrorType:: GENERIC_ERROR , "GENERIC_ERROR" },
{ ErrorType:: ASSERTION_FAILED , "ASSERTION_FAILED" },
{ ErrorType:: FILE_NOT_FOUND , "FILE_NOT_FOUND" },
{ ErrorType:: SYNTAX_ERROR , "SYNTAX_ERROR" },
{ ErrorType:: NOT_IMPLEMENTED , "NOT_IMPLEMENTED" },
{ ErrorType:: SEMANTIC_ERROR , "SEMANTIC_ERROR" },
{ ErrorType:: UNKNOWN_SYMBOL , "UNKNOWN_SYMBOL" },
{ ErrorType:: IMPORT_ERROR , "IMPORT_ERROR" },
{ ErrorType:: TYPE_ERROR , "TYPE_ERROR" },
{ ErrorType:: COMPILE_ERROR , "COMPILE_ERROR" },
{ ErrorType:: LINK_ERROR , "LINK_ERROR" },
}

Definition at line 49 of file error.h.


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