「✨」 feat: finished ex01 (normally)
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user