"use strict";

function iSCSINameValidatorException(strMessage, nCode)
{
	this.strMessage = strMessage;
	this.nCode = nCode;
	this.strType = "iSCSINameValidatorException";
}

/*	RFC 3720  ; 3.2.6.3.  iSCSI Name Structure
*	
*	 iqn.       - iSCSI Qualified name
*	 eui.      - Remainder of the string is an IEEE EUI-64
*	             identifier, in ASCII-encoded hexadecimal.
*/
iSCSINameValidatorException.INVALID_TYPE_DESIGNATOR = 1;

/*	RFC 3721 ; 1.1
*/
iSCSINameValidatorException.NO_IQN_MANDATORY_PART = 2;

/*	RFC 3721
*	A date code specifying the year and month in which the
*	organization registered the domain or sub-domain name used as the
*	naming authority string.
*	yyyy-mm , jan == 01, Dec == 12
*/
iSCSINameValidatorException.WRONG_DATE_FORMAT = 3;

/*
* EUI name must only contain hexadecimal characters.
*/
iSCSINameValidatorException.NOT_HEXADECIMAL = 10;

/*
* EUI name must be exactly 64 bits long.
*/
iSCSINameValidatorException.NOT_64_BIT = 11;