00001 /* 00002 * @file StUCMException.cpp 00003 * @author Stephen Tramer 00004 * 00005 * @(#)cpp/api:$Id: StUCMException.cxx,v 1.2 2010/03/30 20:05:36 fine Exp $ 00006 * 00007 * See StUCMException.h for detals. 00008 */ 00009 00010 #include <string> 00011 00012 #include "StUCMException.h" 00013 //using namespace TxLogging; 00014 StUCMException::StUCMException(const std::string& description, 00015 Severity severity) 00016 : description_(description), 00017 severity_(severity) 00018 {} // EMPTY 00019 00020 00021 StUCMException::StUCMException(Severity severity) 00022 : severity_(severity) 00023 {} // EMPTY 00024 00025 00026 StUCMException::~StUCMException() 00027 {} //EMPTY 00028 00029 00030 std::string 00031 StUCMException::getDescription() const 00032 { 00033 return description_; 00034 } 00035 00036 00037 StUCMException::Severity 00038 StUCMException::getSeverity() const 00039 { 00040 return severity_; 00041 } 00042 00043 00044 void 00045 StUCMException::setDescription(const std::string& desc) 00046 { 00047 description_ = desc; 00048 }
1.5.9