SilentEye 0.4.1

sef/silenteyeexception.cpp

Go to the documentation of this file.
00001 //  This file is part of SilentEye.
00002 //
00003 //  SilentEye is free software: you can redistribute it and/or modify
00004 //  it under the terms of the GNU General Public License as published by
00005 //  the Free Software Foundation, either version 3 of the License, or
00006 //  (at your option) any later version.
00007 //
00008 //  SilentEye is distributed in the hope that it will be useful,
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 //  GNU General Public License for more details.
00012 //
00013 //  You should have received a copy of the GNU General Public License
00014 //  along with SilentEye. If not, see <http://www.gnu.org/licenses/>.
00015 
00016 #include "moduleexception.h"
00017 
00018 namespace SilentEyeFramework {
00019 
00020     SilentEyeException::SilentEyeException(const QString& message) throw()
00021         : Exception() {
00022         m_message = message;
00023         m_details = "";
00024     }
00025 
00026     SilentEyeException::SilentEyeException(const QString& message,
00027                                            const QString& details) throw()
00028                                                : Exception(){
00029         m_message = message;
00030         m_details = details;
00031     }
00032 
00033     SilentEyeException::SilentEyeException(const SilentEyeException& exception) throw()
00034         : Exception(){
00035         m_message = exception.message();
00036         m_details = exception.details();
00037     }
00038 
00039     SilentEyeException::~SilentEyeException() throw(){}
00040 
00041     QString SilentEyeException::message() const{
00042         return m_message;
00043     }
00044 
00045     QString SilentEyeException::details() const{
00046         return m_details;
00047     }
00048 
00049 }