24#ifndef __DOTS_INTERNAL_PARSE_ERROR_H__
25#define __DOTS_INTERNAL_PARSE_ERROR_H__
28#include <Safir/Dob/Typesystem/ToolSupport/Internal/InternalExportDefs.h>
41#pragma warning (disable: 4275)
42#pragma warning (disable: 4251)
48 class DOTS_INTERNAL_API
ParseError :
public std::exception
60 ParseError(
const std::string& label,
const std::string& description,
const std::string& file,
int errorId)
62 ,m_description(description)
79 const std::string&
Label()
const throw() {
return m_label;}
86 const std::string&
Description()
const throw() {
return m_description;}
93 const std::string&
File()
const throw() {
return m_file;}
109 const char*
what ()
const throw ()
override
113 std::ostringstream os;
114 os<<m_label<<
"; "<<m_description<<
"; "<<m_file<<
"; ErrorCode="<<m_errorId;
117 return m_what.c_str();
122 std::string m_description;
124 mutable std::string m_what;
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
Exception used to report errors in dou- and dom- files.
Definition ParseError.h:49
ParseError(const std::string &label, const std::string &description, const std::string &file, int errorId)
Constructor - Creates a ParseError object.
Definition ParseError.h:60
const char * what() const override
Get error informtation on the form "Label; Description; File; ErrorId".
Definition ParseError.h:109
const std::string & File() const
Get file where error occured.
Definition ParseError.h:93
const std::string & Description() const
Get Internaled error description.
Definition ParseError.h:86
int ErrorId() const
Get an error identifier that can be used to find out exactly where this error was generated.
Definition ParseError.h:101
~ParseError()
Destructor.
Definition ParseError.h:72
const std::string & Label() const
Get short error description.
Definition ParseError.h:79