com.buildforge.services.common
Class ServiceException.WrappedServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.buildforge.services.common.ServiceException.WrappedServiceException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ServiceException

public class ServiceException.WrappedServiceException
extends java.lang.RuntimeException

This is a simple wrapping class that allows a ServiceException to be thrown as an unchecked exception. To recover the original exception from the wrapped version, simply call unwrap().

See Also:
Serialized Form

Constructor Summary
ServiceException.WrappedServiceException()
          A wrapper can be requested by anything that has obtained a service exception.
 
Method Summary
 ServiceException unwrap()
          Recovers the original ServiceException.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException.WrappedServiceException

public ServiceException.WrappedServiceException()
A wrapper can be requested by anything that has obtained a service exception.

Method Detail

unwrap

public ServiceException unwrap()
Recovers the original ServiceException.

Returns:
the original ServiceException