	
Application.Exceptions = function () {

	this.exceptions = [
		['Application.login.UserNotFoundException', 'No user found.']
		,['Application.login.AuthenticationException', 'Password is incorrect.']
		,['Application.passwordRetrieval.MissingPasswordException', 'No password found.  Please contact an administrator.']
		,['Application.passwordRetrieval.UserNotFoundException', 'No matching user found.  Please verify your email address or apply for access.']
		,['Application.Validation', 'The fields contain validation errors.<br/>Please make modifications and try again.']
	]
}	

Application.Exceptions.prototype = {
	
	getMsg: function (type) {
		var e = this.exceptions;
		for (var i = 0; i < e.length; i++) {
			if (e[i][0] == type)
				return e[i][1];
		}
	}
	
}	
 
