API Documentation
Loading...
Searching...
No Matches
FileException Class Reference

#include <Exception.h>

Inheritance diagram for FileException:
[legend]
Collaboration diagram for FileException:
[legend]

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 FilegetFile () 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 TranslatedStringgetTitle () const
 
virtual const TranslatedStringgetCategory () const
 
virtual const StringstackTrace () const
 
virtual uint04 getPriority () const
 
const Stringthread () 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
 

Member Enumeration Documentation

◆ ExceptionType

Enumerator
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 

Constructor & Destructor Documentation

◆ FileException() [1/2]

FileException ( const File & file,
FileException::ExceptionType type = e_generic )
explicit

◆ FileException() [2/2]

FileException ( const File & file,
const TranslatedString & message,
ExceptionType type = e_generic )

Member Function Documentation

◆ getFile()

const File & getFile ( ) const
inline

◆ getType()

ExceptionType getType ( ) const
inline

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