sk.uniba.euromath.document.schema.impl.tools
Class ExceptionPackager

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by sk.uniba.euromath.document.schema.impl.tools.ExceptionPackager
All Implemented Interfaces:
Serializable

public class ExceptionPackager
extends RuntimeException

Serves for moving exception. Derived from RuntimeException it doesn't need to be declared in throws clause. Because of that it can be thrown everywhere. If exception needs to be thrown in such method (without throws clause), then that exception can be packaged into this exception. Later you can catch this exception and get the original one.

Author:
Martin Vysny
See Also:
Serialized Form

Constructor Summary
ExceptionPackager(Throwable cause)
          Construct the wrapper
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionPackager

public ExceptionPackager(Throwable cause)
Construct the wrapper

Parameters:
cause - wrap this exception


Copyright © 2003-2006 null. All Rights Reserved.