Gamp v0.0.7-67-g7798ac4
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Exception types and functions

Exception types and functions. More...

Classes

class  jau::ExceptionBase
 
class  jau::IllegalArgumentError
 
class  jau::IllegalStateError
 
class  jau::IndexOutOfBoundsError
 
class  jau::InternalError
 
class  jau::IOError
 
class  jau::LogicError
 
class  jau::LogicErrorBase
 
class  jau::NotImplementedException
 
class  jau::NullPointerException
 
class  jau::OutOfMemoryError
 
class  jau::RuntimeException
 
class  jau::RuntimeExceptionBase
 
class  jau::RuntimeSystemException
 
class  jau::RuntimeSystemExceptionBase
 
class  jau::UnsupportedOperationException
 

Typedefs

typedef jau::function< bool(const std::exception &, const char *file, int line)> jau::exception_handler_t
 Exception handler method, should return true if not consumed or deemed an error. Shall be noexcept itself.
 

Functions

template<class UnaryPredicate>
bool jau::do_noexcept (UnaryPredicate p) noexcept
 No throw wrap for given unary predicate p action. Returns true for success (no exception), otherwise false (exception occurred).
 
bool jau::handle_exception (std::exception_ptr eptr, const char *file, int line) noexcept
 Handle given optional exception (nullable std::exception_ptr) and send std::exception::what() message to stderr
 
bool jau::handle_exception (std::exception_ptr eptr, jau::exception_handler_t &eh, const char *file, int line) noexcept
 Handle given optional exception (nullable std::exception_ptr) and calls exception_handler_t.
 

Detailed Description

Exception types and functions.

Typedef Documentation

◆ exception_handler_t

typedef jau::function<bool(const std::exception &, const char* file, int line)> jau::exception_handler_t

Exception handler method, should return true if not consumed or deemed an error. Shall be noexcept itself.

Definition at line 46 of file exceptions.hpp.

Function Documentation

◆ handle_exception() [1/2]

bool jau::handle_exception ( std::exception_ptr eptr,
const char * file,
int line )
inlinenoexcept

Handle given optional exception (nullable std::exception_ptr) and send std::exception::what() message to stderr

Parameters
eptrcontains optional exception, may be nullptr
Returns
true if eptr contained an exception pointer, false otherwise (nullptr)

Definition at line 475 of file cpp_lang_util.hpp.

Here is the caller graph for this function:

◆ do_noexcept()

template<class UnaryPredicate>
bool jau::do_noexcept ( UnaryPredicate p)
inlinenoexcept

No throw wrap for given unary predicate p action. Returns true for success (no exception), otherwise false (exception occurred).

Definition at line 489 of file cpp_lang_util.hpp.

Here is the caller graph for this function:

◆ handle_exception() [2/2]

bool jau::handle_exception ( std::exception_ptr eptr,
jau::exception_handler_t & eh,
const char * file,
int line )
inlinenoexcept

Handle given optional exception (nullable std::exception_ptr) and calls exception_handler_t.

Parameters
eptrcontains optional exception, may be nullptr
ehexception_handler_t to process an eventual exception
Returns
true if eptr contained an exception pointer, exception_handler_t result is returned. Otherwise false (no exception).

Definition at line 55 of file exceptions.hpp.