RumbleUI.Error = {
	Errors: {
		Unknown: 0,
		InvalidElement: 1
	},	
	
	ErrorDescription: [
		"Unknown Error",
		"'$name' is not a valid HTMLElement. Check that the given element exists in the DOM at this point"		
	],
	
	throwError: function(error) {
		if (RumbleUI.Error.ErrorDescription[error]) {
			throw "RumbleUI has encountered the following error: " +  RumbleUI.Error.ErrorDescription[error];
		} else {
			throw "RumbleUI has encountered the following error: " + RumbleUI.Error.ErrorDescription[RumbleUI.Error.Errors.Unknown];
		}		
	}
}
