mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 08:49:03 +00:00
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
/**
|
|
* @file NotSupportedException.h
|
|
* @brief Declaration of tc::NotSupportedException
|
|
* @author Jack (jakcron)
|
|
* @version 0.1
|
|
* @date 2020/01/22
|
|
**/
|
|
#pragma once
|
|
#include <tc/Exception.h>
|
|
|
|
namespace tc {
|
|
|
|
/**
|
|
* @class NotSupportedException
|
|
* @brief The exception that is thrown when an invoked method is not supported, or when there is an attempt to read, seek, or write to a stream that does not support the invoked functionality.
|
|
**/
|
|
class NotSupportedException : public tc::Exception
|
|
{
|
|
public:
|
|
/// Default Constructor
|
|
NotSupportedException() noexcept :
|
|
tc::Exception()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @brief Basic Parameterized Constructor
|
|
*
|
|
* @param[in] what Explanation for exception
|
|
*
|
|
* @post
|
|
* - what() == what
|
|
* - module() == ""
|
|
* - error() == what
|
|
**/
|
|
NotSupportedException(const std::string& what) noexcept :
|
|
tc::Exception(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
|
|
**/
|
|
NotSupportedException(const std::string& module, const std::string& what) noexcept :
|
|
tc::Exception(module, what)
|
|
{
|
|
}
|
|
};
|
|
|
|
} // namespace tc
|