
// Auto-generated file -- do not edit

#include "Box.h"
#include "autogen_CompressException.h"

#include "MemLeakFindOn.h"

#ifdef EXCEPTION_CODENAMES_EXTENDED
	#ifdef EXCEPTION_CODENAMES_EXTENDED_WITH_DESCRIPTION
static const char *whats[] = {
	"Compress Internal",
	"Compress InitFailed",
	"Compress EndFailed",
	"Compress BadUsageInputNotRequired",
	"Compress TransformFailed",
	"Compress CopyCompressStreamNotAllowed",
	"Compress NullPointerPassedToCompressStream",
	"Compress CompressStreamReadSupportNotRequested (Specify read in the constructor)",
	"Compress CompressStreamWriteSupportNotRequested (Specify write in the constructor)",
	"Compress CannotWriteToClosedCompressStream"
};
	#else
static const char *whats[] = {
	"Compress Internal",
	"Compress InitFailed",
	"Compress EndFailed",
	"Compress BadUsageInputNotRequired",
	"Compress TransformFailed",
	"Compress CopyCompressStreamNotAllowed",
	"Compress NullPointerPassedToCompressStream",
	"Compress CompressStreamReadSupportNotRequested",
	"Compress CompressStreamWriteSupportNotRequested",
	"Compress CannotWriteToClosedCompressStream"
};
	#endif
#endif

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

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

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

