Kernel Tuning Toolkit 2.3
 
Loading...
Searching...
No Matches
ktt::KttException Class Reference

#include <KttException.h>

Inheritance diagram for ktt::KttException:

Public Member Functions

 KttException (const std::string &message, const ExceptionReason reason=ExceptionReason::General)
 
const char * what () const noexcept override
 
ExceptionReason GetReason () const
 

Detailed Description

Exception thrown when invalid usage of KTT API is detected.

Constructor & Destructor Documentation

◆ KttException()

ktt::KttException::KttException ( const std::string &  message,
const ExceptionReason  reason = ExceptionReason::General 
)

Creates new exception with the specified error message.

Parameters
messageHolds message describing why the exception was thrown.
reasonReason why the exception was thrown.

Member Function Documentation

◆ GetReason()

ExceptionReason ktt::KttException::GetReason ( ) const

Returns reason why the exception was thrown.

Returns
Reason why the exception was thrown.

◆ what()

const char * ktt::KttException::what ( ) const
overridenoexcept

Returns message which describes why the exception was thrown.

Returns
Message which describes why the exception was thrown.

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