Cppcheck
Public Types | Public Member Functions | Public Attributes | List of all members
InternalError Struct Reference

Simple container to be thrown when internal error is detected. More...

#include <errortypes.h>

Public Types

enum  Type {
  AST , SYNTAX , UNKNOWN_MACRO , INTERNAL ,
  LIMIT , INSTANTIATION
}
 

Public Member Functions

 InternalError (const Token *tok, std::string errorMsg, Type type=INTERNAL)
 
 InternalError (const Token *tok, std::string errorMsg, std::string details, Type type=INTERNAL)
 

Public Attributes

const Tokentoken
 
std::string errorMessage
 
std::string details
 
Type type
 
std::string id
 

Detailed Description

Simple container to be thrown when internal error is detected.

Definition at line 36 of file errortypes.h.

Member Enumeration Documentation

◆ Type

Enumerator
AST 
SYNTAX 
UNKNOWN_MACRO 
INTERNAL 
LIMIT 
INSTANTIATION 

Definition at line 37 of file errortypes.h.

Constructor & Destructor Documentation

◆ InternalError() [1/2]

InternalError::InternalError ( const Token tok,
std::string  errorMsg,
Type  type = INTERNAL 
)

Definition at line 42 of file errortypes.cpp.

◆ InternalError() [2/2]

InternalError::InternalError ( const Token tok,
std::string  errorMsg,
std::string  details,
Type  type = INTERNAL 
)

Definition at line 46 of file errortypes.cpp.

Member Data Documentation

◆ details

std::string InternalError::details

Definition at line 44 of file errortypes.h.

Referenced by ErrorMessage::fromInternalError().

◆ errorMessage

std::string InternalError::errorMessage

◆ id

std::string InternalError::id

Definition at line 46 of file errortypes.h.

Referenced by ErrorMessage::fromInternalError().

◆ token

const Token* InternalError::token

◆ type

Type InternalError::type

Definition at line 45 of file errortypes.h.


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