Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx::exception_t::LocatedException Class Reference

LocatedException class thrown with extra information such as file_path, func, line_num, internal_code and descriptions. More...

#include <ssgx_exception_t.h>

Public Member Functions

 LocatedException (const char *file_path, int line_num, const char *func, int internal_code, const char *message)
 
virtual const char * what () const noexcept
 

Public Attributes

std::string info_
 

Detailed Description

LocatedException class thrown with extra information such as file_path, func, line_num, internal_code and descriptions.

try {
if ((ret = BN_set_bit(bn_, index)) != 1) {
throw LocatedException(__FILE__, __LINE__, __FUNCTION__, ret,
"(ret = BN_set_bit(bn_, index)) != 1");
}
} catch (const LocatedException &e) {
std::cout << e.what() << std::endl;
}
LocatedException(const char *file_path, int line_num, const char *func, int internal_code, const char *message)
Definition ssgx_exception_t.h:40

The output is: Catch LocatedException: tring_crypto/crypto-bn-cpp/src/crypto-bn/bn.cpp:1124:FromBytesBE:0:(ret = BN_set_bit(bn_, index)) != 1

Constructor & Destructor Documentation

◆ LocatedException()

ssgx::exception_t::LocatedException::LocatedException ( const char * file_path,
int line_num,
const char * func,
int internal_code,
const char * message )
inlineexplicit

Member Function Documentation

◆ what()

virtual const char * ssgx::exception_t::LocatedException::what ( ) const
inlinevirtualnoexcept

Member Data Documentation

◆ info_

std::string ssgx::exception_t::LocatedException::info_

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