Enrollment 28.2.0
Loading...
Searching...
No Matches
EnrollmentRuntimeException Class Reference

Base exception for all enrollment-sdk runtime exceptions. More...

#include <EnrollmentException.h>

Inheritance diagram for EnrollmentRuntimeException:

Public Member Functions

 EnrollmentException (std::string reason, SourceLocation location=SourceLocation())
 Construct EnrollmentException object.
const char * what () const noexcept override
 Provides error message.
SourceLocation Location () const noexcept
 Provides location of error.
std::string ToString () const
 Provides message with full info about exception.

Detailed Description

Base exception for all enrollment-sdk runtime exceptions.

Member Function Documentation

◆ EnrollmentException()

EnrollmentException ( std::string reason,
SourceLocation location = SourceLocation() )
inlineexplicit

Construct EnrollmentException object.

Constructor of EnrollmentException exception. This exception is used for general errors or as a base class for custom exceptions of the enrollment SDK.

Parameters
reasonerror reason
locationSource location of where the exception was thrown

◆ Location()

SourceLocation Location ( ) const
inlinenodiscardnoexceptinherited

Provides location of error.

Returns
error location

◆ ToString()

std::string ToString ( ) const
inlinenodiscardinherited

Provides message with full info about exception.

Returns
exception data as string

◆ what()

const char * what ( ) const
inlinenodiscardoverridenoexceptinherited

Provides error message.

Standard exception error message interface which is usually used for printing message when exception is caught in user application.

Returns
error message

The documentation for this class was generated from the following file: