|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.exceptions.FaultDSL.AsClause
public static class FaultDSL.AsClause
Fault narrowing clause;
| Method Summary | ||
|---|---|---|
|
as(Class<T1> clazz1)
Rethrows the fault with a narrower type, or wraps it in ServiceException if its type cannot be narrowed. |
|
|
as(Class<T1> clazz1,
Class<T2> clazz2)
Rethrows the fault with a narrower type, or wraps it in ServiceException if its type cannot be narrowed. |
|
|
as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3)
Rethrows the fault with a narrower type, or wraps it in ServiceException if its type cannot be narrowed. |
|
|
as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3,
Class<T4> clazz4)
Rethrows the fault with a narrower type, or wraps it in ServiceException if its type cannot be narrowed. |
|
ServiceException |
asServiceException()
Throws a ServiceException caused by a given fault |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ServiceException asServiceException()
ServiceException caused by a given fault
fault - the fault
public <T1 extends Throwable> ServiceException as(Class<T1> clazz1)
throws T1 extends Throwable
ServiceException if its type cannot be narrowed.
clazz1 - the narrower type
T1 - the narrower type
T1 extends Throwable
public <T1 extends Throwable,T2 extends Throwable> ServiceException as(Class<T1> clazz1,
Class<T2> clazz2)
throws T1 extends Throwable,
T2 extends Throwable
ServiceException if its type cannot be narrowed.
clazz1 - the narrower typeclazz2 - an alternative narrower type
T1 - the narrower type
T2 - the second narrower type
T1 extends Throwable
public <T1 extends Throwable,T2 extends Throwable,T3 extends Throwable> ServiceException as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3)
throws T1 extends Throwable,
T2 extends Throwable,
T3 extends Throwable
ServiceException if its type cannot be narrowed.
clazz1 - the narrower typeclazz2 - an alternative narrower typeclazz3 - an alternative narrower type
T1 - the narrower type
T2 - the second narrower type
T3 - the second narrower type
T1 extends Throwable
public <T1 extends Throwable,T2 extends Throwable,T3 extends Throwable,T4 extends Throwable> ServiceException as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3,
Class<T4> clazz4)
throws T1 extends Throwable,
T2 extends Throwable,
T3 extends Throwable,
T4 extends Throwable
ServiceException if its type cannot be narrowed.
clazz1 - the narrower typeclazz2 - an alternative narrower typeclazz3 - an alternative narrower typeclazz4 - an alternative narrower type
T1 - the narrower type
T2 - the second narrower type
T3 - the second narrower type
T4 - the second narrower type
T1 extends Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||