# HG changeset patch # User Florian Pose # Date 1267791642 -3600 # Node ID 67fc217d73414653964661a6334819dab5532709 # Parent 5adbf2bc48d9cc795fa1ea5c9a1b1205c597a89c Overloaded throwCommandException(). diff -r 5adbf2bc48d9 -r 67fc217d7341 tool/Command.cpp --- a/tool/Command.cpp Wed Mar 03 21:40:14 2010 +0100 +++ b/tool/Command.cpp Fri Mar 05 13:20:42 2010 +0100 @@ -146,6 +146,13 @@ /*****************************************************************************/ +void Command::throwCommandException(const string &msg) const +{ + throw CommandException(msg); +} + +/*****************************************************************************/ + void Command::throwCommandException(const stringstream &s) const { throw CommandException(s); diff -r 5adbf2bc48d9 -r 67fc217d7341 tool/Command.h --- a/tool/Command.h Wed Mar 03 21:40:14 2010 +0100 +++ b/tool/Command.h Fri Mar 05 13:20:42 2010 +0100 @@ -62,6 +62,11 @@ friend class Command; protected: + /** Constructor with char * parameter. */ + CommandException( + const string &msg /**< Message. */ + ): runtime_error(msg) {} + /** Constructor with stringstream parameter. */ CommandException( const stringstream &s /**< Message. */ @@ -116,6 +121,7 @@ enum {BreakAfterBytes = 16}; void throwInvalidUsageException(const stringstream &) const; + void throwCommandException(const string &) const; void throwCommandException(const stringstream &) const; void throwSingleSlaveRequired(unsigned int) const;