63 #ifndef support_Exception_hpp 64 #define support_Exception_hpp 99 virtual const std::string&
what()
const = 0;
102 virtual std::string
message()
const = 0;
105 virtual void report(std::ostream& os)
const = 0;
106 virtual void report()
const = 0;
116 const char* filenm =
NULL,
unsigned int lineno = 0);
119 const char* filenm =
NULL,
unsigned int lineno = 0);
126 virtual const std::string&
what()
const {
return mWhat; }
129 virtual const std::string&
where()
const {
return mWhere; }
135 return "[Diagnostics::Exception] " + mWhat +
" (" + mWhere +
")";
138 virtual void report(std::ostream& os)
const {
145 void Ctor(
const std::string& x,
146 const char* filenm =
NULL,
unsigned int lineno = 0);
159 const char* filenm =
NULL,
unsigned int lineno = 0);
162 const char* filenm =
NULL,
unsigned int lineno = 0);
170 return "[Diagnostics::FatalException] " + mWhat +
" [" + mWhere +
"]";
179 #endif // support_Exception_hpp virtual std::string message() const =0
virtual std::string message() const
virtual const std::string & what() const
virtual void report() const
virtual const std::string & where() const
virtual std::string message() const
virtual void report(std::ostream &os) const
virtual void report() const =0
virtual const std::string & what() const =0