
// Auto-generated file -- do not edit

#include "Box.h"
#include "autogen_ClientException.h"

#include "MemLeakFindOn.h"

#ifdef EXCEPTION_CODENAMES_EXTENDED
	#ifdef EXCEPTION_CODENAMES_EXTENDED_WITH_DESCRIPTION
static const char *whats[] = {
	"Client Internal",
	"Client AssertFailed",
	"Client ClockWentBackwards (Invalid (negative) sync period: perhaps your clock is going backwards?)",
	"Client FailedToDeleteStoreObjectInfoFile (Failed to delete the StoreObjectInfoFile, backup cannot continue safely.)",
	"Client CorruptStoreObjectInfoFile (The store object info file contained an invalid value and is probably corrupt. Try deleting it.)"
};
	#else
static const char *whats[] = {
	"Client Internal",
	"Client AssertFailed",
	"Client ClockWentBackwards",
	"Client FailedToDeleteStoreObjectInfoFile",
	"Client CorruptStoreObjectInfoFile"
};
	#endif
#endif

unsigned int ClientException::GetType() const throw()
{
	return ClientException::ExceptionType;
}

unsigned int ClientException::GetSubType() const throw()
{
	return mSubType;
}

const char *ClientException::what() const throw()
{
#ifdef EXCEPTION_CODENAMES_EXTENDED
	if(mSubType < 0 || mSubType > (sizeof(whats) / sizeof(whats[0])))
	{
		return "Client";
	}
	return whats[mSubType];
#else
	return "Client";
#endif
}

