更改文件夹名。
This commit is contained in:
29
FinalProject/Exceptions.cpp
Normal file
29
FinalProject/Exceptions.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include "Exceptions.hpp"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
BaseException::BaseException(const std::string msg) : message(msg) {
|
||||
std::cout << msg << std::endl;
|
||||
};
|
||||
|
||||
BaseListException::BaseListException(const std::string msg)
|
||||
: BaseException(msg){};
|
||||
|
||||
ValueError::ValueError(const std::string msg) : BaseListException(msg){};
|
||||
|
||||
IndexError::IndexError(const std::string msg) : BaseListException(msg){};
|
||||
|
||||
DuplicateError::DuplicateError(const std::string msg)
|
||||
: BaseListException(msg){};
|
||||
|
||||
BaseDisplayException::BaseDisplayException(const std::string msg)
|
||||
: BaseException(msg){};
|
||||
|
||||
PageIndexError::PageIndexError(const std::string msg)
|
||||
: BaseDisplayException(msg){};
|
||||
|
||||
FileIOError::FileIOError(const std::string msg) : BaseException(msg){};
|
||||
|
||||
FileReadError::FileReadError(const std::string msg) : FileIOError(msg){};
|
||||
|
||||
FileWriteError::FileWriteError(const std::string msg) : FileIOError(msg){};
|
||||
Reference in New Issue
Block a user