Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Core::EnvisionException Class Reference

The EnvisionException class is the base class of all exception classes in Envision. More...

Inheritance diagram for Core::EnvisionException:
Alloy::AlloyException CodeReview::CodeReviewException Comments::CommentsException ContractsLibrary::ContractsLibraryException ControlFlowVisualization::ControlFlowVisualizationException CppExport::CppExportException CppImport::CppImportException CppImportLight::CppImportLightException CustomMethodCall::CustomMethodCallException Export::ExportException FilePersistence::FilePersistenceException InformationScripting::InformationScriptingException Interaction::InteractionBaseException JavaExport::JavaExportException Model::ModelException OODebug::OODebugException OOInteraction::OOInteractionException OOModel::OOModelException OOVisualization::OOVisualizationException VersionControlUI::VersionControlUIException Visualization::VisualizationException

Public Member Functions

 EnvisionException ()
 
 EnvisionException (const QString &message, bool assertInDebugMode=true)
 
virtual ~EnvisionException ()
 
virtual const QString & message () const
 
virtual const QString & name () const
 
virtual void printError () const
 

Static Public Member Functions

static bool & assertOnThrow ()
 Set this to control whether an assertion violation should occur when an exception is created. More...
 

Private Attributes

QString msg_
 

Detailed Description

The EnvisionException class is the base class of all exception classes in Envision.

It provides simple facilities to store and print an error message.

Constructor & Destructor Documentation

◆ EnvisionException() [1/2]

Core::EnvisionException::EnvisionException ( )

◆ EnvisionException() [2/2]

Core::EnvisionException::EnvisionException ( const QString &  message,
bool  assertInDebugMode = true 
)

◆ ~EnvisionException()

Core::EnvisionException::~EnvisionException ( )
virtual

Member Function Documentation

◆ assertOnThrow()

bool & Core::EnvisionException::assertOnThrow ( )
static

Set this to control whether an assertion violation should occur when an exception is created.

◆ message()

const QString & Core::EnvisionException::message ( ) const
virtual

◆ name()

const QString & Core::EnvisionException::name ( ) const
virtual

◆ printError()

void Core::EnvisionException::printError ( ) const
virtual

Member Data Documentation

◆ msg_

QString Core::EnvisionException::msg_
private