rtcException.cpp
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009
00003  * Robert Bosch LLC
00004  * Research and Technology Center North America
00005  * Palo Alto, California
00006  *
00007  * All rights reserved.
00008  *
00009  *------------------------------------------------------------------------------
00010  * project ....: Autonomous Technologies
00011  * file .......: rtcException.cpp
00012  * authors ....: Benjamin Pitzer
00013  * organization: Robert Bosch LLC
00014  * creation ...: 04/14/2008
00015  * modified ...: $Date: 2009-01-26 13:06:31 -0800 (Mon, 26 Jan 2009) $
00016  * changed by .: $Author: kls1pal $
00017  * revision ...: $Revision: 23 $
00018  */
00019 
00020 //== INCLUDES ==================================================================
00021 #include "rtc/rtcException.h"
00022 
00023 //== NAMESPACES ================================================================
00024 namespace rtc {
00025 
00026 Exception::Exception(const std::string& error)
00027 {
00028   errorMessage = error;
00029 }
00030 
00031 Exception::~Exception(void)
00032 {
00033 }
00034 
00035 const std::string& Exception::getErrorMessage() const
00036 {
00037   return errorMessage;
00038 }
00039 
00040 const std::string& Exception::what() const
00041 {
00042   return errorMessage;
00043 }
00044 
00045 //==============================================================================
00046 } // namespace rtc
00047 //==============================================================================


rtc
Author(s): Benjamin Pitzer
autogenerated on Thu Jan 2 2014 11:04:53