git repos / blockattack-game

blame: source/code/CppSdlException.cpp

normal view · raw

c53e6443 sago007 2012-04-17 11:04 1
/*
af35c39d sago007 2013-11-16 16:37 2
===========================================================================
af35c39d sago007 2013-11-16 16:37 3
blockattack - Block Attack - Rise of the Blocks
af35c39d sago007 2013-11-16 16:37 4
Copyright (C) 2005-2013 Poul Sander
af35c39d sago007 2013-11-16 16:37 5
af35c39d sago007 2013-11-16 16:37 6
This program is free software: you can redistribute it and/or modify
af35c39d sago007 2013-11-16 16:37 7
it under the terms of the GNU General Public License as published by
af35c39d sago007 2013-11-16 16:37 8
the Free Software Foundation, either version 2 of the License, or
af35c39d sago007 2013-11-16 16:37 9
(at your option) any later version.
af35c39d sago007 2013-11-16 16:37 10
af35c39d sago007 2013-11-16 16:37 11
This program is distributed in the hope that it will be useful,
af35c39d sago007 2013-11-16 16:37 12
but WITHOUT ANY WARRANTY; without even the implied warranty of
af35c39d sago007 2013-11-16 16:37 13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
af35c39d sago007 2013-11-16 16:37 14
GNU General Public License for more details.
af35c39d sago007 2013-11-16 16:37 15
af35c39d sago007 2013-11-16 16:37 16
You should have received a copy of the GNU General Public License
af35c39d sago007 2013-11-16 16:37 17
along with this program.  If not, see http://www.gnu.org/licenses/
af35c39d sago007 2013-11-16 16:37 18
af35c39d sago007 2013-11-16 16:37 19
Source information and contacts persons can be found at
af35c39d sago007 2013-11-16 16:37 20
http://blockattack.sf.net
af35c39d sago007 2013-11-16 16:37 21
===========================================================================
af35c39d sago007 2013-11-16 16:37 22
*/
3db6ed5d sago007 2010-12-07 17:19 23
3db6ed5d sago007 2010-12-07 17:19 24
#include "CppSdlException.hpp"
3db6ed5d sago007 2010-12-07 17:19 25
c53e6443 sago007 2012-04-17 11:04 26
namespace CppSdl
c53e6443 sago007 2012-04-17 11:04 27
{
3db6ed5d sago007 2010-12-07 17:19 28
c53e6443 sago007 2012-04-17 11:04 29
CppSdlException::CppSdlException(Subsystem subsystem,long errorNumber, std::string msg)
c53e6443 sago007 2012-04-17 11:04 30
{
c53e6443 sago007 2012-04-17 11:04 31
	_errorNumber = errorNumber;
c53e6443 sago007 2012-04-17 11:04 32
	_message = msg;
c53e6443 sago007 2012-04-17 11:04 33
	_subsystem = subsystem;
3db6ed5d sago007 2010-12-07 17:19 34
}
3db6ed5d sago007 2010-12-07 17:19 35
c53e6443 sago007 2012-04-17 11:04 36
CppSdlException::CppSdlException(const CppSdlException& orig)
c53e6443 sago007 2012-04-17 11:04 37
{
3db6ed5d sago007 2010-12-07 17:19 38
}
3db6ed5d sago007 2010-12-07 17:19 39
c53e6443 sago007 2012-04-17 11:04 40
CppSdlException::~CppSdlException() throw()
c53e6443 sago007 2012-04-17 11:04 41
{
8d488d32 sago007 2011-04-17 13:02 42
}
3db6ed5d sago007 2010-12-07 17:19 43
c53e6443 sago007 2012-04-17 11:04 44
const char* CppSdlException::what() const throw()
c53e6443 sago007 2012-04-17 11:04 45
{
c53e6443 sago007 2012-04-17 11:04 46
	return _message.c_str();
1df28151 sago007 2010-12-23 22:51 47
}
1df28151 sago007 2010-12-23 22:51 48
c53e6443 sago007 2012-04-17 11:04 49
long CppSdlException::GetErrorNumber()
c53e6443 sago007 2012-04-17 11:04 50
{
c53e6443 sago007 2012-04-17 11:04 51
	return _errorNumber;
1df28151 sago007 2010-12-23 22:51 52
}
1df28151 sago007 2010-12-23 22:51 53
c53e6443 sago007 2012-04-17 11:04 54
Subsystem CppSdlException::GetSubSystem()
c53e6443 sago007 2012-04-17 11:04 55
{
c53e6443 sago007 2012-04-17 11:04 56
	return _subsystem;
3db6ed5d sago007 2010-12-07 17:19 57
}
3db6ed5d sago007 2010-12-07 17:19 58
8d488d32 sago007 2011-04-17 13:02 59
}
1970-01-01 00:00 60