mirror of
https://github.com/nasa/trick.git
synced 2024-12-30 01:48:52 +00:00
24cfabbdef
Added headers with previous path for backwards compatability. Changed name of Exec_exception to ExecutiveException. refs #63
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() ;
|
|
}
|
|
|