General IRI utilities
ctimeexceptions.cpp
1 // Copyright (C) 2009-2010 Institut de Robòtica i Informàtica Industrial, CSIC-UPC.
2 // Author Sergi Hernandez (shernand@iri.upc.edu)
3 // All rights reserved.
4 //
5 // This file is part of iriutils
6 // iriutils is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU Lesser General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 #include "ctimeexceptions.h"
20 #include <string.h>
21 #include <stdio.h>
22 
23 const std::string ctime_exception_msg="[CTime class] - ";
24 
25 CTimeException::CTimeException(const std::string& where, const std::string& error_msg):CException(where,ctime_exception_msg)
26 {
27  this->error_msg += error_msg;
28 }
29 
CTimeException(const std::string &where, const std::string &error_msg)
Constructor.
std::string error_msg
Exception error message.
Definition: exceptions.h:90
Generic exception.
Definition: exceptions.h:76