diff options
| author | Tristan Matthews <le.businessman@gmail.com> | 2010-11-02 21:10:52 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:26 +0200 |
| commit | f1e5c8b2cfa3589aea3aeaad82c7dcf42fc58750 (patch) | |
| tree | 7fc8285b5869b1b2424a5f03888cf6cd2a1ae21d | |
| parent | 1aeb3051b91d55cb23e15d5b03fe71a7cb447860 (diff) | |
RtError: made printMessage and other get methods const
| -rw-r--r-- | RtError.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,13 +41,13 @@ class RtError : public std::exception virtual ~RtError( void ) throw() {} //! Prints thrown error message to stderr. - virtual void printMessage( void ) throw() { std::cerr << '\n' << message_ << "\n\n"; } + virtual void printMessage( void ) const throw() { std::cerr << '\n' << message_ << "\n\n"; } //! Returns the thrown error message type. - virtual const Type& getType(void) throw() { return type_; } + virtual const Type& getType(void) const throw() { return type_; } //! Returns the thrown error message string. - virtual const std::string& getMessage(void) throw() { return message_; } + virtual const std::string& getMessage(void) const throw() { return message_; } //! Returns the thrown error message as a c-style string. virtual const char* what( void ) const throw() { return message_.c_str(); } |
