1
0

」 feat: finished ex01 (normally)

This commit is contained in:
2025-03-30 16:18:58 +02:00
parent e5bf6c151c
commit 2b136d90f4
6 changed files with 27 additions and 24 deletions

View File

@ -6,11 +6,12 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/23 13:59:45 by adjoly #+# #+# */
/* Updated: 2025/03/29 16:49:20 by adjoly ### ########.fr */
/* Updated: 2025/03/30 15:13:43 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "Bureaucrat.hpp"
#include "Form.hpp"
#include <exception>
void _log(std::string emoji, std::string what, std::string who,
@ -102,9 +103,9 @@ const char *Bureaucrat::GradeTooLowException::what() const throw() {
void Bureaucrat::signForm(Form &f) {
try {
f.getSigned();
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;
std::cout << _name << " counldn't sign " << f.getName() << " because " << e.what() << std::endl;
}
}