"use strict";

function URLValidatorException(strMessage, nCode)
{
	this.strMessage=strMessage;
	this.nCode=nCode;
	this.strType="URLValidatorException";
}
 
/**
* The 3986 RFC does not specify a maximum length, however this validation class does.
*/
URLValidatorException.URL_LONGER_THAN_MAXIMUM_ALLOWED=1;

/**
* RFC 3986.
* Missing authority path-abempty.
* Missing '//' right after URI scheme and ':'.
*/
URLValidatorException.MISSING_AUTHORITY_PATH_ABEMPTY=2;

/**
* It is only allowed to set an empty password or no password
* as RFC 3986 deprecates (does not recommend) storing user passwords on URL.
*/
URLValidatorException.USER_INFO_PASSWORD_NOT_ALLOWED=3;

/**
* RFC 3986.
* Empty, invalid characters or invalid hex encoding in username.
*/
URLValidatorException.USERNAME_INVALID=4;

/**
* The port is out of bounds. Value must be between 1 and 65535 inclusive.
*/
URLValidatorException.INVALID_PORT=5;

/**
* The path contains invalid characters.
*/
URLValidatorException.PATH_INVALID=6;

/**
* The query contains invalid characters.
*/
URLValidatorException.QUERY_INVALID=7;

/**
* The fragment contains invalid characters.
*/
URLValidatorException.FRAGMENT_INVALID=8;

/**
* Only http and https URL schemes are allowed.
*/
URLValidatorException.SCHEME_NOT_ALLOWED=9;

/**
* Missing scheme separator ':'.
*/
URLValidatorException.MISSING_SCHEME_SEPARATOR=10;
