GeoGen API Reference
Public Member Functions | List of all members
geogen::compiler::CompilerException Class Reference

Base class for exceptions throw during script compilation. More...

Inherits geogen::GeoGenException.

Inherited by geogen::compiler::IncorrectEnumScriptParameterTypeException, geogen::compiler::IncorrectMapSizeNumericValueException, geogen::compiler::IncorrectMetadataValueTypeException, geogen::compiler::IncorrectScriptParameterAttributeTypeException, geogen::compiler::IncorrectScriptParameterValueRestrictionException, geogen::compiler::InvalidBreakException, geogen::compiler::InvalidContinueException, geogen::compiler::InvalidEscapeSequenceException, geogen::compiler::InvalidReturnException, geogen::compiler::InvalidSymbolDefinitionException, geogen::compiler::MainMapNotSupportedByScriptException, geogen::compiler::MetadataKeyRedefinitionException, geogen::compiler::MinGreaterThanMaxSizeException, geogen::compiler::ReadOnlyExpressionWriteException, geogen::compiler::ReservedScriptParameterNameException, geogen::compiler::ScriptParameterTypeNotSpecifiedException, geogen::compiler::SymbolRedefinitionException, geogen::compiler::UndefinedMetadataIdentifierException, geogen::compiler::UnexpectedCharacterException, and geogen::compiler::UnexpectedTokenException.

Public Member Functions

 CompilerException (ErrorCode code, CodeLocation location)
 Constructor. More...
 
CodeLocation GetLocation ()
 Gets the location. More...
 
- Public Member Functions inherited from geogen::GeoGenException
 GeoGenException (ErrorCode code)
 
virtual const char * what () const throw ()
 
ErrorCode GetErrorCode () const
 Gets an error code representing the error. More...
 
virtual String GetDetailMessage ()
 Gets a detailed message of the exception. More...
 

Detailed Description

Base class for exceptions throw during script compilation.

Examples:
ErrorHandling.cpp.

Constructor & Destructor Documentation

geogen::compiler::CompilerException::CompilerException ( ErrorCode  code,
CodeLocation  location 
)
inlineexplicit

Constructor.

Parameters
codeThe error code.
locationThe location.

Member Function Documentation

CodeLocation geogen::compiler::CompilerException::GetLocation ( )
inline

Gets the location.

Returns
The location.