BNM 2.4.0
 
Loading...
Searching...
No Matches
BNM::Exception Struct Reference

Wrapper of Il2CppException. More...

#include <Exceptions.hpp>

Public Member Functions

constexpr Exception ()=default
 Create empty exception.
 
constexpr Exception (BNM::IL2CPP::Il2CppException *exception)
 Create exception from il2cpp exception.
 
std::string ClassName () const
 Get class name of exception.
 
std::string Message () const
 Get message of exception.
 
IL2CPP::Il2CppObject * Data () const
 Get data of exception.
 
IL2CPP::Il2CppException * GetException () const
 Get Il2CppException.
 
bool IsValid () const
 Check if exception is valid.
 

Public Attributes

BNM::IL2CPP::Il2CppException * _data {}
 

Detailed Description

Wrapper of Il2CppException.

Constructor & Destructor Documentation

◆ Exception()

BNM::Exception::Exception ( BNM::IL2CPP::Il2CppException * exception)
inlineconstexpr

Create exception from il2cpp exception.

Parameters
exceptionIl2cpp exception

Member Function Documentation

◆ ClassName()

std::string BNM::Exception::ClassName ( ) const
inlinenodiscard

Get class name of exception.

Returns
Class name of exception

◆ Data()

IL2CPP::Il2CppObject * BNM::Exception::Data ( ) const
inlinenodiscard

Get data of exception.

Returns
Data of exception

◆ GetException()

IL2CPP::Il2CppException * BNM::Exception::GetException ( ) const
inlinenodiscard

Get Il2CppException.

Returns
Il2CppException

◆ IsValid()

bool BNM::Exception::IsValid ( ) const
inlinenodiscard

Check if exception is valid.

Returns
State of exception

◆ Message()

std::string BNM::Exception::Message ( ) const
inlinenodiscard

Get message of exception.

Returns
Message of exception