25#ifndef _dots_exception_h
26#define _dots_exception_h
29#define WIDEN2(x) L ## x
30#define WIDEN(x) WIDEN2(x)
31#define __WFILE__ WIDEN(__FILE__)
67#pragma warning (disable:4251)
68#pragma warning (disable:4275)
88 const std::wstring & fileName,
126 virtual const std::wstring
GetName()
const = 0;
158 const char *
what()
const throw() override;
174 std::wstring m_FileName;
175 std::wstring m_Message;
182 mutable std::
string m_ConvertedMessage;
215 const std::wstring & fileName,
248 const std::wstring & fileName,
279 const std::wstring & fileName,
283 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.IllegalValueException";}
312 const std::wstring & fileName,
316 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.IncompatibleTypesException";}
345 const std::wstring & fileName,
349 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.ConfigurationErrorException";}
379 const std::wstring & fileName,
383 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.SoftwareViolationException";}
411 const std::wstring & fileName,
415 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.NullException";}
445 const std::wstring & fileName,
449 const std::wstring
GetName()
const override {
return L
"Safir.Dob.Typesystem.ReadOnlyException";}
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
This namespace contains all functionality of the DOB (Components DOSE and DOTS).
Definition Connection.h:38
This namespace contains the DOB Typesystem functionality and definitions.
Definition ArrayContainer.h:37
DotsC_Int64 Int64
64 bit integer type.
Definition Defs.h:69
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Common functionality for the exception hierarchy of the DOB typesystem.
Definition Exceptions.h:73
const std::wstring & GetMessage() const
Get the message about why the exception occurred.
Definition Exceptions.h:119
virtual ~CommonExceptionBase()
Destroy the exception.
virtual TypeId GetTypeId() const =0
Get the type id of this exception.
const char * what() const override
Get the GetExceptionInfo as a UTF8 encoded string.
const std::wstring & GetFileName() const
Get the name of the file where the exception occurred.
Definition Exceptions.h:133
CommonExceptionBase(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
virtual const std::wstring GetName() const =0
Get the exception name.
Dob::Typesystem::Int64 GetLineNumber() const
Get the line number that the exception occurred on.
Definition Exceptions.h:140
const std::wstring GetExceptionInfo() const
Get a formatted string containing all the information in the exception.
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:222
FundamentalException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:219
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:252
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:255
Exception(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:286
IllegalValueException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:278
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:283
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:288
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:319
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:316
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:321
IncompatibleTypesException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:311
ConfigurationErrorException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:344
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:352
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:354
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:349
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:388
SoftwareViolationException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:378
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:386
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:383
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:418
NullException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:410
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:415
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:420
const std::wstring GetName() const override
Get the exception name.
Definition Exceptions.h:449
static const TypeId ExceptionTypeId
The TypeId of this exception.
Definition Exceptions.h:452
ReadOnlyException(const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
Constructor with exception information.
Definition Exceptions.h:444
TypeId GetTypeId() const override
Get the type id of this exception.
Definition Exceptions.h:454
#define DOTS_CPP_API
Definition Defs.h:33