/* 
 * <copyright> 
 *  Copyright (c) 2001 by Hyperwave AG
 * </copyright> 
 * 
 * <file> 
 *  Name:        AbstractResource.js
 *  Created:     2001-01-14
 *  $Id: ResourceException.js,v 1.2 2001/05/18 14:36:32 mmair Exp $
 * </file>
 */

initPackage ( "com.hyperwave.res" );
loadClass ( "lang.Exception" );

//----------------------------------------------------------------------
/**
 * This exception class wraps all current resource exceptions.
 * The only purpose is to hold an array which can get a kind
 * of error stack. 
 */
// <JSClass Name="com.hyperwave.res.ResourceException">
{

  //--------------------------------------------------------------------
  /**
    * Creates an exception instance for resource error handling.
    */
  com.hyperwave.res.ResourceException = function ( aParam )
  {
    if ( aParam == "__proto__" )
      return;

    this.base$ = lang.Exception;
    this.base$ ( aParam );

    this.exceptionName_ = "com.hyperwave.res.ResourceException";
  }
  class$ = doInherit ( com.hyperwave.res.ResourceException, lang.Exception );

  //--------------------------------------------------------------------
  /**
   * Test main routine
   */
  class$.static_.main = function ()
  {
    var x = new com.hyperwave.res.ResourceException ( "Error 1" );
    x.pushError ( "Error 2" );
    writeln ( x.toString () );
  }

}
// </JSClass>
//----------------------------------------------------------------------

/* End of "com.hyperwave.res.ResourceException" */

