Base Framework
Public Member Functions | List of all members
FileNotFound Class Reference

File not found exception. More...

#include <base/io/FileNotFound.h>

Inherits FileException.

Public Member Functions

 FileNotFound () noexcept
 
 FileNotFound (const char *message) noexcept
 
 FileNotFound (const Type &type) noexcept
 
 FileNotFound (const char *message, const Type &type) noexcept
 
bool isCommonException () const noexcept override
 
- Public Member Functions inherited from FileException
 FileException () noexcept
 
 FileException (const char *message) noexcept
 
 FileException (const Type &type) noexcept
 
 FileException (const char *message, const Type &type) noexcept
 
- Public Member Functions inherited from IOException
 IOException () noexcept
 
 IOException (const char *message) noexcept
 
 IOException (const Type &type) noexcept
 
 IOException (const char *message, const Type &type) noexcept
 
- Public Member Functions inherited from Exception
 Exception () noexcept
 
 Exception (const char *message) noexcept
 
 Exception (const Type &type) noexcept
 
 Exception (const char *message, const Type &type) noexcept
 
 Exception (const Exception &copy) 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 TypegetType () const noexcept
 
void setType (const Type &type) noexcept
 
OwnedNativeString getHTML () const
 
virtual ~Exception () noexcept
 

Additional Inherited Members

- Public Types inherited from IOException
enum  Cause { ABORTED, BROKEN_STREAM, PENDING }
 
- Public Types inherited from Exception
enum  DumpOnThrow { DUMP_ON_THROW_NO = 0, DUMP_ON_THROW_EXCEPTION, DUMP_ON_THROW_STACK }
 
typedef void(* ExceptionHandler) (const Exception *exception)
 
- Static Public Member Functions inherited from 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 Public Attributes inherited from Exception
static constexpr bool SUPPORTS_EXCEPTIONS = true
 

Detailed Description

File not found exception.

Specifies that the file doesn't exist or couldn't be opened.

Version
1.0

Constructor & Destructor Documentation

◆ FileNotFound() [1/4]

FileNotFound::FileNotFound ( )
noexcept

Initializes the exception object with no message.

◆ FileNotFound() [2/4]

FileNotFound::FileNotFound ( const char *  message)
noexcept

Initializes the exception object.

Parameters
messageThe message.

◆ FileNotFound() [3/4]

FileNotFound::FileNotFound ( const Type type)
noexcept

Initializes the exception object without an associated message.

Parameters
typeThe identity of the type.

◆ FileNotFound() [4/4]

FileNotFound::FileNotFound ( const char *  message,
const Type type 
)
noexcept

Initializes the exception object.

Parameters
messageAn NULL-terminated string (ASCII).
typeThe identity of the type.

Member Function Documentation

◆ isCommonException()

bool FileNotFound::isCommonException ( ) const
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.