pmdcamera_exceptions.cpp
Go to the documentation of this file.
00001 #include "pmdcamera_exceptions.h"
00002 #include <sstream>
00003 #include <string.h>
00004 #include <stdio.h>
00005 
00006 const std::string PmdCamera_error_message="Internal PmdCamera error: error code ";
00007 const std::string feature_error_message="Feature error: ";
00008 
00009 CPmdCameraInternalException::CPmdCameraInternalException(const std::string& where,int error_code):CException(where,PmdCamera_error_message)
00010 {
00011   std::stringstream text;
00012 
00013   text << error_code;
00014   this->error_msg+=text.str();
00015 }
00016 
00017 CPmdCameraException::CPmdCameraException(const std::string& where,const std::string& error_msg):CException(where,error_msg)
00018 {
00019   /* do nothing */
00020 }
00021 
00022 CPmdCameraFeatureException::CPmdCameraFeatureException(const std::string& where,const std::string& feature,const std::string& error_msg):CException(where,feature_error_message)
00023 {
00024   this->error_msg+=error_msg;
00025   this->error_msg+=feature;
00026 }


iri_pmdcamera
Author(s): Guillem Alenya - IRI Robotics Lab
autogenerated on Fri Dec 6 2013 20:10:05