mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-05 16:59:02 +00:00
Move dependencies to the top level.
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
/**
|
||||
* @file FileNotFoundException.h
|
||||
* @brief Declaration of tc::io::FileNotFoundException
|
||||
* @author Jack (jakcron)
|
||||
* @version 0.1
|
||||
* @date 2020/01/22
|
||||
**/
|
||||
#pragma once
|
||||
#include <tc/io/IOException.h>
|
||||
|
||||
namespace tc { namespace io {
|
||||
|
||||
/**
|
||||
* @class FileNotFoundException
|
||||
* @brief The exception that is thrown when an attempt to access a file that does not exist on disk fails.
|
||||
**/
|
||||
class FileNotFoundException : public tc::io::IOException
|
||||
{
|
||||
public:
|
||||
/// Default Constructor
|
||||
FileNotFoundException() noexcept :
|
||||
tc::io::IOException()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Basic Parameterized Constructor
|
||||
*
|
||||
* @param[in] what Explanation for exception
|
||||
*
|
||||
* @post
|
||||
* - what() == what
|
||||
* - module() == ""
|
||||
* - error() == what
|
||||
**/
|
||||
FileNotFoundException(const std::string& what) noexcept :
|
||||
tc::io::IOException(what)
|
||||
{}
|
||||
|
||||
/**
|
||||
* @brief Parameterized Constructor
|
||||
*
|
||||
* @param[in] module Name of module that threw the exception
|
||||
* @param[in] what Explanation for exception
|
||||
*
|
||||
* @post
|
||||
* - what() == "[" + module + " ERROR] " + what
|
||||
* - module() == module
|
||||
* - error() == what
|
||||
**/
|
||||
FileNotFoundException(const std::string& module, const std::string& what) noexcept :
|
||||
tc::io::IOException(module, what)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
}} // namespace tc::io
|
||||
Reference in New Issue
Block a user