33#include <NDEVR/File.h>
34#include "Exception.hpp"
CancelException(const TranslatedString &message)
Constructs a CancelException with a custom cancellation message.
CancelException()
Constructs a CancelException with a default cancellation message.
FileException(const File &file, ExceptionType type=e_generic)
Constructs a FileException for the given file and error type.
ExceptionType getType() const
Returns the type of file error that occurred.
ExceptionType
Categorizes the type of file error that occurred.
@ e_file_exits
The file already exists when a new file was expected.
@ e_no_create
The file could not be created.
@ e_already_open
The file is already open by another process or handle.
@ e_does_not_exist
The file does not exist at the specified path.
@ e_no_open
The file could not be opened.
@ e_file_invalid
The file is invalid or corrupted.
@ e_not_supported
The file format or operation is not supported.
@ e_generic
A generic, unspecified file error.
@ e_checksum_failed
The file checksum verification failed.
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.
const File & getFile() const
Returns the file associated with this exception.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
@ type
The type identifier string for this model node.
@ file
The source file path associated with this object.