/**
 * @author		Patrick Schröder
 * @copyright	2010 DI.NET AG
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 */
function Application() {

	this.init = function() {
		this.setErrorHandler();
	}

	this.setErrorHandler = function() {
/*		$.ajaxSetup({
			error: function(x,e) {
				if(x.status == 0) {
					alert('You are offline!!\n Please Check Your Network.');
				} else if(x.status == 404){
					alert('Requested URL not found.');
				} else if(x.status == 500){
					alert('Internel Server Error.');
				} else if(e=='parsererror'){
					alert('Error.\nParsing JSON Request failed.');
				} else if(e=='timeout'){
					alert('Request Time out.');
				} else {
					alert('Unknow Error.\n'+x.responseText);
				}
			}
		});
*/
/*		$(document).ajaxError(function(e, xhr, settings, exception) {
			alert('Error!');
		});*/
	}
}

var application = new Application();

application.init();
