Something went wrong. Try again.
Java--'s try/catch projects.intra.42.fr/projects/cpp-module-05
Something went wrong. Try again.
644 B · 27 lines
C++
at main
12345678910111213141516171819202122232425262728#pragma once
#include <exception>#include <iostream>#include <string>#include <AForm.hpp>
class Intern { public: Intern(); Intern(const Intern& other);
AForm* makeForm(const std::string& formName, const std::string& target) const;
Intern& operator=(const Intern& other);
virtual ~Intern(); private: AForm* createShrubberyCreationForm(const std::string& target) const; AForm* createRobotomyRequestForm(const std::string& target) const; AForm* createPresidentialPardonForm(const std::string& target) const;
class UnknownFormException : public std::exception { public: const char* what() const throw(); };};