﻿var Kebek = function() { };
Kebek.Exception = function() 
{ 
	this.innerException = new Object();
};
Kebek.Exception.prototype = {
	init: function()
	{
		this.registerException("NameNotFound", "Message not found.");
		this.registerException("BrowserNotSupported", "Your browser does not support the current operation.");
	},
	registerException: function(name, text)
	{
		this.innerException[name] = text;
	},
	getException: function(name)
	{
		if (this.innerException[name] == undefined)
		{
			return this.innerException["NameNotFound"];
		}
		else
		{
			return this.innerException[name];
		}
	}
}

var KebekException = new Kebek.Exception();