You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
717 B
36 lines
717 B
15 years ago
|
#ifndef _DATABASE_EXCEPTION_HPP
|
||
|
#define _DATABASE_EXCEPTION_HPP
|
||
|
|
||
4 years ago
|
#include "svnqt/exception.h"
|
||
15 years ago
|
|
||
|
namespace svn
|
||
|
{
|
||
|
namespace cache
|
||
|
{
|
||
|
|
||
14 years ago
|
class SVNTQT_EXPORT DatabaseException:public svn::Exception
|
||
15 years ago
|
{
|
||
|
private:
|
||
|
DatabaseException()throw();
|
||
|
int m_number;
|
||
|
|
||
|
public:
|
||
14 years ago
|
DatabaseException(const TQString&msg)throw()
|
||
15 years ago
|
: Exception(msg),m_number(-1)
|
||
|
{}
|
||
|
|
||
|
DatabaseException(const DatabaseException&src)throw()
|
||
|
: Exception(src.msg()),m_number(src.number())
|
||
|
{}
|
||
14 years ago
|
DatabaseException(const TQString&msg,int aNumber)throw();
|
||
15 years ago
|
virtual ~DatabaseException()throw(){}
|
||
|
int number() const
|
||
|
{
|
||
|
return m_number;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|
||
|
#endif
|