summaryrefslogtreecommitdiff
path: root/RtError.h
diff options
context:
space:
mode:
authorStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:59:16 +0200
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:59:16 +0200
commitda9b77ef9a50a97f7c1f2e154edb938acff02214 (patch)
tree38dcf95e8df65d3e2c8696eee754dd54856d4e01 /RtError.h
parentbe2eb99b37cd017fcab00c1704f794cb1bc85ee1 (diff)
parent6faf4336eb5952b141e1c239d194f5cd70f0a885 (diff)
Merge 4.0.8 into releases
Diffstat (limited to 'RtError.h')
-rw-r--r--RtError.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/RtError.h b/RtError.h
index ac5c414..a64f434 100644
--- a/RtError.h
+++ b/RtError.h
@@ -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(); }