reformat OSRMException.h
This commit is contained in:
parent
dee3529f14
commit
8e6cc09d2f
@ -31,15 +31,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <exception>
|
#include <exception>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class OSRMException: public std::exception {
|
class OSRMException : public std::exception
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
explicit OSRMException(const char *message) : message(message) {}
|
explicit OSRMException(const char *message) : message(message) {}
|
||||||
explicit OSRMException(const std::string &message) : message(message) {}
|
explicit OSRMException(const std::string &message) : message(message) {}
|
||||||
virtual ~OSRMException() throw() {}
|
virtual ~OSRMException() throw() {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual const char* what() const throw() {
|
virtual const char *what() const throw() { return message.c_str(); }
|
||||||
return message.c_str();
|
|
||||||
}
|
|
||||||
const std::string message;
|
const std::string message;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user