Skip to content

Commit 364b5ad

Browse files
committed
fix error messages
this fixes #188 Signed-off-by: Torbjörn Klatt <[email protected]>
1 parent 8383122 commit 364b5ad

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

include/pfasst/interfaces.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ namespace pfasst
2929
class NotImplementedYet
3030
: public runtime_error
3131
{
32-
protected:
33-
string msg;
34-
3532
public:
3633
/**
3734
* @param[in] msg component or algorithm the throwing function is required for
@@ -53,9 +50,6 @@ namespace pfasst
5350
class ValueError
5451
: public invalid_argument
5552
{
56-
protected:
57-
string msg;
58-
5953
public:
6054
explicit ValueError(const string& msg);
6155
virtual const char* what() const throw();

src/pfasst/interfaces_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace pfasst
2121
*/
2222
const char* NotImplementedYet::what() const throw()
2323
{
24-
return (string("Not implemented/supported yet, required for: ") + this->msg).c_str();
24+
return (string("Not implemented/supported yet, required for: ") + string(runtime_error::what())).c_str();
2525
}
2626

2727

@@ -36,7 +36,7 @@ namespace pfasst
3636
*/
3737
const char* ValueError::what() const throw()
3838
{
39-
return (string("ValueError: ") + this->msg).c_str();
39+
return (string("ValueError: ") + string(invalid_argument::what())).c_str();
4040
}
4141

4242

0 commit comments

Comments
 (0)