Safir SDK Core
Loading...
Searching...
No Matches
Safir::Dob::NotFoundException Class Reference

Thrown when eg GetFreeInstance can not find a free instance. More...

#include </home/lars/safir/safir-sdk-core/src/safir_dou/gen/cpp/include/Safir/Dob/NotFoundException.h>

Inheritance diagram for Safir::Dob::NotFoundException:
[legend]
Collaboration diagram for Safir::Dob::NotFoundException:
[legend]

Public Member Functions

 NotFoundException (const std::wstring &message, const std::wstring &fileName, const Safir::Dob::Typesystem::Int64 lineNumber)
 Constructor with exception information.
 
const std::wstring GetName () const override
 Get the exception name.
 
Safir::Dob::Typesystem::TypeId GetTypeId () const override
 Get the type id of this exception.
 
- Public Member Functions inherited from Safir::Dob::Typesystem::Exception
 Exception (const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
 Constructor with exception information.
 
- Public Member Functions inherited from Safir::Dob::Typesystem::Internal::CommonExceptionBase
 CommonExceptionBase (const std::wstring &message, const std::wstring &fileName, const Dob::Typesystem::Int64 lineNumber)
 Constructor with exception information.
 
virtual ~CommonExceptionBase () throw ()
 Destroy the exception.
 
const std::wstring GetExceptionInfo () const
 Get a formatted string containing all the information in the exception.
 
const char * what () const override throw ()
 Get the GetExceptionInfo as a UTF8 encoded string.
 
const std::wstring & GetMessage () const
 Get the message about why the exception occurred.
 
const std::wstring & GetFileName () const
 Get the name of the file where the exception occurred.
 
Dob::Typesystem::Int64 GetLineNumber () const
 Get the line number that the exception occurred on.
 

Static Public Attributes

static const Safir::Dob::Typesystem::TypeId ExceptionTypeId = 3772823158354641740LL
 Type id for NotFoundException.
 
- Static Public Attributes inherited from Safir::Dob::Typesystem::Exception
static const TypeId ExceptionTypeId = 8409897425067168944LL
 The TypeId of this exception.
 

Detailed Description

Thrown when eg GetFreeInstance can not find a free instance.

Constructor & Destructor Documentation

◆ NotFoundException()

Safir::Dob::NotFoundException::NotFoundException ( const std::wstring & message,
const std::wstring & fileName,
const Safir::Dob::Typesystem::Int64 lineNumber )

Constructor with exception information.

Creates an exception that contains information about why and where the exception occurred.

Parameters
message[in] - A message describing why the exception occurred.
fileName[in] - The name of the file where the exception occurred. Always use WFILE as the argument for this parameter.
lineNumber[in] - The line number that the exception occurred on. Always use LINE as the argument for this parameter.

Member Function Documentation

◆ GetName()

const std::wstring Safir::Dob::NotFoundException::GetName ( ) const
overridevirtual

Get the exception name.

Returns
The name of the exception

Implements Safir::Dob::Typesystem::Internal::CommonExceptionBase.

◆ GetTypeId()

Safir::Dob::Typesystem::TypeId Safir::Dob::NotFoundException::GetTypeId ( ) const
overridevirtual

Get the type id of this exception.

Gets the type id of the exception. Method is virtual to ensure that the right value gets returned for pointers or references.

Note: This method is overridden by all auto-generated classes.

Returns
The TypeId of the exception.

Reimplemented from Safir::Dob::Typesystem::Exception.

Member Data Documentation

◆ ExceptionTypeId

const Safir::Dob::Typesystem::TypeId Safir::Dob::NotFoundException::ExceptionTypeId = 3772823158354641740LL
static

Type id for NotFoundException.