info.magnolia.jcr
Class RuntimeRepositoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by info.magnolia.jcr.RuntimeRepositoryException
All Implemented Interfaces:
Serializable

public class RuntimeRepositoryException
extends RuntimeException

Wraps RepositoryException as a runtime exception. Useful in cases where a RepositoryException is an unrecoverable error. Prefer using this class to wrapping as a plain RuntimeException as this is easier to catch and handle in cases where it is necessary to unpack the cause to display an appropriate error message or rethrow it as a checked exception.

Version:
$Id$
See Also:
Serialized Form

Constructor Summary
RuntimeRepositoryException(javax.jcr.RepositoryException e)
           
RuntimeRepositoryException(String message, javax.jcr.RepositoryException e)
           
 
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

RuntimeRepositoryException

public RuntimeRepositoryException(javax.jcr.RepositoryException e)

RuntimeRepositoryException

public RuntimeRepositoryException(String message,
                                  javax.jcr.RepositoryException e)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.