trick/trick_source/sim_services/Executive/ExecutiveException.cpp

25 lines
496 B
C++
Raw Normal View History

#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() ;
}