trick/trick_source/sim_services/Executive/ExecutiveException.cpp
Alex Lin 24cfabbdef Standardize directory names
Added headers with previous path for backwards compatability.  Changed name of Exec_exception to ExecutiveException.

refs #63
2015-06-09 08:44:43 -05:00

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