
// Auto-generated file -- do not edit

#include "Box.h"
#include "autogen_ConversionException.h"

#include "MemLeakFindOn.h"

#ifdef EXCEPTION_CODENAMES_EXTENDED
	#ifdef EXCEPTION_CODENAMES_EXTENDED_WITH_DESCRIPTION
static const char *whats[] = {
	"Conversion Internal",
	"Conversion CannotConvertEmptyStringToInt",
	"Conversion BadStringRepresentationOfInt",
	"Conversion IntOverflowInConvertFromString",
	"Conversion BadIntSize"
};
	#else
static const char *whats[] = {
	"Conversion Internal",
	"Conversion CannotConvertEmptyStringToInt",
	"Conversion BadStringRepresentationOfInt",
	"Conversion IntOverflowInConvertFromString",
	"Conversion BadIntSize"
};
	#endif
#endif

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

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

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

