X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2FException.hpp;h=2590def0abe25232d5917c11a5ecaf359014c801;hp=7906b7020e66b7fb5851329add07f3b6251c6ea4;hb=849f4a7977b5780eacae8fad7a078d05f4a615ee;hpb=b0eaa3f1fbf491fdc8a3044cf20754f14254338a diff --git a/src/Exception.hpp b/src/Exception.hpp index 7906b70..2590def 100644 --- a/src/Exception.hpp +++ b/src/Exception.hpp @@ -36,42 +36,42 @@ namespace suPHP { */ class Exception { private: - std::string message; - std::string backtrace; - int line; - std::string file; - virtual std::string getName() const =0; - + std::string message; + std::string backtrace; + int line; + std::string file; + virtual std::string getName() const =0; + public: - /** - * Constructor without message. - */ - Exception(std::string file, int line); + /** + * Constructor without message. + */ + Exception(std::string file, int line); - /** - * Constructor with message. - */ - Exception(std::string message, std::string file, int line); - - /** - * Constructor without message but with cause. - */ - Exception(Exception& cause, std::string file, int line); - - /** - * Constructor with message and cause. - */ - Exception(std::string message, Exception& cause, std::string file, int line); - - /** - * Get the message - */ - std::string getMessage(); + /** + * Constructor with message. + */ + Exception(std::string message, std::string file, int line); + + /** + * Constructor without message but with cause. + */ + Exception(Exception& cause, std::string file, int line); + + /** + * Constructor with message and cause. + */ + Exception(std::string message, Exception& cause, std::string file, int line); + + /** + * Get the message + */ + std::string getMessage(); - /** - * Get string representing the exception - */ - std::string toString() const; + /** + * Get string representing the exception + */ + std::string toString() const; }; std::ostream& operator<<(std::ostream& os, const Exception& e);