mirror of
https://github.com/nasa/trick.git
synced 2024-12-25 07:41:08 +00:00
25 lines
496 B
C++
25 lines
496 B
C++
|
|
||
|
#include <iostream>
|
||
|
#include <sstream>
|
||
|
|
||
|
#include "trick/ExecutiveException.hh"
|
||
|
|
||
|
Trick::ExecutiveException::ExecutiveException(int in_ret , std::string in_file , int line , std::string in_message ) {
|
||
|
|
||
|
std::ostringstream o ;
|
||
|
|
||
|
ret_code = in_ret ;
|
||
|
o << in_file << ":" << line ;
|
||
|
file = o.str() ;
|
||
|
message = in_message ;
|
||
|
|
||
|
}
|
||
|
|
||
|
Trick::ExecutiveException::~ExecutiveException() throw () {
|
||
|
}
|
||
|
|
||
|
const char* Trick::ExecutiveException::what() const throw() {
|
||
|
return message.c_str() ;
|
||
|
}
|
||
|
|