/*****************************************************************************
 *
 * File     : Exception.js
 * 
 * Project  : WMS Viewer Client
 * 
 * Contents : 
 *
 * Author: Milan Trninic
 *
 * Copyright 1999-2005 Galdos Systems, Inc.
 * All rights reserved.
 * 
 ***|***************************|***********************|*******************|*/

/************************************************************************
*
*	function:	Exception
*
*	purpose:	Constructor
*						Here we depart from usual pattern of encapsulation and we expose
*						name and message fields without providing appropriate getters.
*						This in order to be aligned with the Javascript exceptions
*
*************************************************************************/
function Exception(message)
{
	// method assignments
	this.init= Exception.init;

	// instance field declarations
	this.name;
	this.message;

	// initialization
	this.init(message);
}

/************************************************************************
*
*	function:	init
*
*	purpose:	initialization
*
*************************************************************************/
function Exception.init(message)
{
	this.message = message;
	this.name = "Exception";
}

