Base Framework
|
#include <base/objectmodel/JSON.h>
Inherits Exception.
Public Member Functions | |
JSONException (const char *message) | |
JSONException (const char *message, const LineColumn &_position) | |
const LineColumn & | getPosition () const noexcept |
void | setPosition (const LineColumn &_position) noexcept |
bool | isCommonException () const noexcept override |
![]() | |
Exception () noexcept | |
Exception (const char *message) noexcept | |
Exception (const Type &type) noexcept | |
Exception (const char *message, const Type &type) noexcept | |
Exception (const Exception ©) noexcept | |
Exception (Exception &&move) noexcept | |
unsigned int | getCause () const noexcept |
void | setCause (unsigned int cause) noexcept |
unsigned int | getError () const noexcept |
void | setError (unsigned int error) noexcept |
const char * | getMessage () const noexcept |
void | setMessage (const char *message) noexcept |
template<decltype(sizeof(void *)) SIZE> | |
void | setMessage (const char(&_message)[SIZE]) noexcept |
virtual Type | getThisType () const noexcept |
const Type & | getType () const noexcept |
void | setType (const Type &type) noexcept |
OwnedNativeString | getHTML () const |
virtual | ~Exception () noexcept |
Additional Inherited Members | |
![]() | |
enum | DumpOnThrow { DUMP_ON_THROW_NO = 0, DUMP_ON_THROW_EXCEPTION, DUMP_ON_THROW_STACK } |
typedef void(* | ExceptionHandler) (const Exception *exception) |
![]() | |
static void | onThrow (const Exception &exception) noexcept |
static void | rethrow () |
static bool | getDumpExceptions () noexcept |
static void | setDumpExceptions (bool _dumpExceptions) noexcept |
static ExceptionHandler | setExceptionHandler (ExceptionHandler _exceptionHandler) noexcept |
static bool | hasPendingException () noexcept |
static bool | isUnwinding () noexcept |
static unsigned int | getPendingExceptions () noexcept |
static const char * | getStdExceptionName (const std::exception &e) noexcept |
static Type | getExceptionType () noexcept |
static StackTrace | getStackTrace () |
static void | setDumpOnThrow (DumpOnThrow dumpOnThrow) noexcept |
![]() | |
static constexpr bool | SUPPORTS_EXCEPTIONS = true |
JSON exception.
|
inlineoverridevirtualnoexcept |
Returns true if exception is generally an externally triggered exception that can be suppressed and handled directly. Internal exceptions like NullPointer should not be handled which is the default behavior. E.g. out of resource, EOF, parsing issues, and similar.
Reimplemented from Exception.