Files
School/Anul 1/Semestrul 2/OOP/Labs/a7-DanielCujba/src/exceptions/exceptions.cpp
T
2024-08-31 12:07:21 +03:00

25 lines
566 B
C++

#include "exceptions.h"
RepoException::RepoException(const char* message){
this->_message = message;
}
const char* RepoException::what() const noexcept {
return this->_message;
}
AdminControllerException::AdminControllerException(const char* message){
this->_message = message;
}
const char* AdminControllerException::what() const noexcept {
return this->_message;
}
ValidatorException::ValidatorException(const char* message){
this->_message = message;
}
const char* ValidatorException::what() const noexcept {
return this->_message;
}