|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rabbitmq.utility.ValueOrException<V,E>
public class ValueOrException<V,E extends java.lang.Throwable & SensibleClone<E>>
| Method Summary | ||
|---|---|---|
V |
getValue()
Retrieve value or throw exception |
|
static
|
makeException(E exception)
Factory method for exceptions |
|
static
|
makeValue(V value)
Factory method for values |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V,E extends java.lang.Throwable & SensibleClone<E>> ValueOrException<V,E> makeValue(V value)
value - the value to wrap as a ValueOrException
public static <V,E extends java.lang.Throwable & SensibleClone<E>> ValueOrException<V,E> makeException(E exception)
exception - the exception to wrap as a ValueOrException
public V getValue()
throws E extends java.lang.Throwable & SensibleClone<E>
E - the wrapped exception, if it's an exception
E extends java.lang.Throwable & SensibleClone<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||