API Documentation
|
#include <Exception.h>
Public Types | |
enum | ExceptionType { e_generic , e_no_open , e_already_open , e_does_not_exist , e_file_exits , e_file_invalid , e_checksum_failed , e_not_supported , e_no_create } |
Public Member Functions | |
NDEVR_BASE_API | FileException (const File &file, ExceptionType type=e_generic) |
NDEVR_BASE_API | FileException (const File &file, const TranslatedString &message, ExceptionType type=e_generic) |
const File & | getFile () const |
ExceptionType | getType () const |
Public Member Functions inherited from Exception | |
virtual | ~Exception ()=default |
NDEVR_BASE_API | Exception (const String &title, const bool &capture_stack=true) |
NDEVR_BASE_API | Exception (const TranslatedString &title, const bool &capture_stack=true) |
NDEVR_BASE_API | Exception (const std::exception &exception) |
NDEVR_BASE_API | Exception (const TranslatedString &title, const TranslatedString &message, const bool &capture_stack=true) |
void | setTitle (const TranslatedString &title) |
virtual void | setMessage (const TranslatedString &message) |
void | setCategory (const TranslatedString &category) |
void | setThread (const String &thread) |
virtual TranslatedString | getMessage () const |
virtual const TranslatedString & | getTitle () const |
virtual const TranslatedString & | getCategory () const |
virtual const String & | stackTrace () const |
virtual uint04 | getPriority () const |
const String & | thread () const |
NDEVR_BASE_API UUID | id () const |
void | printToLogger () |
Additional Inherited Members | |
Protected Attributes inherited from Exception | |
TranslatedString | m_message |
TranslatedString | m_title |
TranslatedString | m_category |
String | m_thread |
String | m_stack_trace |
uint04 | m_priority |
enum ExceptionType |
|
explicit |
FileException | ( | const File & | file, |
const TranslatedString & | message, | ||
ExceptionType | type = e_generic ) |
|
inline |
|
inline |