Something went wrong. Try again.
Java--'s try/catch projects.intra.42.fr/projects/cpp-module-05
Something went wrong. Try again.
618 B · 29 lines
C++
at main
123456789101112131415161718192021222324252627282930#pragma once
#include <AForm.hpp>#include <exception>#include <string>
class ShrubberyCreationForm : public AForm { public: ShrubberyCreationForm(); ShrubberyCreationForm(const ShrubberyCreationForm& other); ShrubberyCreationForm(const std::string& target);
const std::string& getTarget() const;
ShrubberyCreationForm& operator=(const ShrubberyCreationForm& other);
virtual ~ShrubberyCreationForm();
class FileCreationException : public std::exception { public: const char* what() const throw(); };
protected: virtual void executeAction() const;
private: std::string target;};