top | up | prev | next

Exception Class

Definition at line 32 of Exception.hpp

Constructors

Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_)
Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_, const Span& referenced_, const boost::uuids::uuid& referencedModuleId_)
Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_, const std::vector<std::pair<Span, boost::uuids::uuid>>& references_)

Member Functions

void AddToDiagnosticsElement(Element* diagnosticsElement) const
const Span& Defined() const
const boost::uuids::uuid& DefinedModuleId() const
const std::string& Message() const
const std::vector<std::pair<Span, boost::uuids::uuid>>& References() const
std::unique_ptr<JsonValue> ToJson() const
const std::string& What() const

Member Variables

Span defined
boost::uuids::uuid definedModuleId
std::string message
std::vector<std::pair<Span, boost::uuids::uuid>> references
std::string what

Constructor Details

Exception Constructor

cmajor::symbols::Exception::Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_)

Definition at line 141 of Exception.cpp :
141 :
142 what(Expand(message_defined_definedModuleId_))message(message_)defined(defined_)definedModuleId(definedModuleId_)
143 {
144 }



Exception Constructor

cmajor::symbols::Exception::Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_, const Span& referenced_, const boost::uuids::uuid& referencedModuleId_)

Definition at line 146 of Exception.cpp :
146 :
147 what(Expand(message_defined_definedModuleId_referenced_referencedModuleId_))message(message_)defined(defined_)definedModuleId(definedModuleId_)
148 {
149     references.push_back(std::make_pair(referenced_referencedModuleId_));
150 }



Exception Constructor

cmajor::symbols::Exception::Exception(const std::string& message_, const Span& defined_, const boost::uuids::uuid& definedModuleId_, const std::vector<std::pair<Span, boost::uuids::uuid>>& references_)

Definition at line 152 of Exception.cpp :
152 :
153 what(Expand(message_defined_definedModuleId_references_))message(message_)defined(defined_)definedModuleId(definedModuleId_)references(references_)
154 {
155 }



Member Function Details

AddToDiagnosticsElement Member Function

void cmajor::symbols::Exception::AddToDiagnosticsElement(Element * diagnosticsElement) const

Definition at line 193 of Exception.cpp
Declaration at line 45 of Exception.hpp

Calls: sngxml::dom::ParentNode::AppendChild


Defined Member Function

const Span & cmajor::symbols::Exception::Defined() const

Definition at line 41 of Exception.hpp :
 41 { return defined; }


DefinedModuleId Member Function

const boost::uuids::uuid& cmajor::symbols::Exception::DefinedModuleId() const

Definition at line 42 of Exception.hpp :
 42 { return definedModuleId; }


Message Member Function

const std::string& cmajor::symbols::Exception::Message() const

Definition at line 40 of Exception.hpp :
 40 { return message; }

Called by: cmajor::symbols::Source::AddSymbols , cmajor::symbols::Source::BindTypes , cmajor::symbols::Source::GetScopes , cmajor::symbols::Sources::Parse , cmajor::symbols::Sources::ParseSource , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit , cmajor::symbols::SymbolCreatorVisitor::Visit


References Member Function

const std::vector<std::pair<Span , boost::uuids::uuid>>& cmajor::symbols::Exception::References() const

Definition at line 43 of Exception.hpp :
 43 { return references; }


ToJson Member Function

std::unique_ptr<JsonValue > cmajor::symbols::Exception::ToJson() const

Definition at line 161 of Exception.cpp
Declaration at line 44 of Exception.hpp

Calls: cmajor::symbols::Module::GetCurrentProjectName , cmajor::symbols::Module::GetCurrentToolName


What Member Function

const std::string& cmajor::symbols::Exception::What() const

Definition at line 39 of Exception.hpp :
 39 { return what; }


top | up | prev | next