「🔨」 fix: fixed skill issue
This commit is contained in:
@ -6,12 +6,11 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/12/23 13:59:45 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/01 10:49:43 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/07 14:39:37 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "Bureaucrat.hpp"
|
||||
#include "Form.hpp"
|
||||
#include <exception>
|
||||
|
||||
void _log(std::string emoji, std::string what, std::string who,
|
||||
@ -100,12 +99,3 @@ const char *Bureaucrat::GradeTooHighException::what() const throw() {
|
||||
const char *Bureaucrat::GradeTooLowException::what() const throw() {
|
||||
return ("Grade is too low");
|
||||
}
|
||||
|
||||
void Bureaucrat::signForm(Form &f) {
|
||||
try {
|
||||
f.beSigned(*this);
|
||||
std::cout << _name << " signed " << f.getName() << std::endl;
|
||||
} catch (std::exception &e) {
|
||||
std::cout << _name << " counldn't sign " << f.getName() << " because " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user