org.multiverse.api.exceptions
Class RetryError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.multiverse.api.exceptions.RetryError
All Implemented Interfaces:
java.io.Serializable

public class RetryError
extends java.lang.Error

An Error dat indicates that a retry should be done.

It is an error because it should not be caught by some exception handler. This is a control flow regulating exception. Something that normally would be a very bad thing, but adding custom control flow to a fixed language like Java is otherwise almost impossible to do transparently.

Author:
Peter Veentjer.
See Also:
Serialized Form

Field Summary
static RetryError INSTANCE
           
 
Constructor Summary
RetryError()
           
 
Method Summary
static RetryError create()
           
 
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
 

Field Detail

INSTANCE

public static final RetryError INSTANCE
Constructor Detail

RetryError

public RetryError()
Method Detail

create

public static RetryError create()


Copyright © 2008-2010 Multiverse. All Rights Reserved.