![]() |
NDEVR
API Documentation
|
An Exception that contains information about a runtime error with a particular File. More...
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 } |
| Categorizes the type of file error that occurred. More... | |
Public Member Functions | |
| FileException (const File &file, const TranslatedString &message, ExceptionType type=e_generic) | |
| Constructs a FileException for the given file with a custom message and error type. | |
| FileException (const File &file, ExceptionType type=e_generic) | |
| Constructs a FileException for the given file and error type. | |
| const File & | getFile () const |
| Returns the file associated with this exception. | |
| ExceptionType | getType () const |
| Returns the type of file error that occurred. | |
An Exception that contains information about a runtime error with a particular File.
This is typically thrown when an action with a file causes an error to occur within the NDEVR API
Definition at line 42 of file Exception.h.
Categorizes the type of file error that occurred.
Definition at line 48 of file Exception.h.
|
explicit |
Constructs a FileException for the given file and error type.
| [in] | file | The file that caused the exception. |
| [in] | type | The category of file error that occurred. |
References e_generic.
| FileException::FileException | ( | const File & | file, |
| const TranslatedString & | message, | ||
| ExceptionType | type = e_generic ) |
Constructs a FileException for the given file with a custom message and error type.
| [in] | file | The file that caused the exception. |
| [in] | message | A translated description of the error. |
| [in] | type | The category of file error that occurred. |
References e_generic.
|
inline |
Returns the file associated with this exception.
Definition at line 79 of file Exception.h.
|
inline |
Returns the type of file error that occurred.
Definition at line 84 of file Exception.h.