| Modifier and Type | Method and Description |
|---|---|
<T1 extends Throwable> |
as(Class<T1> clazz1)
Rethrows the fault with a narrower type, or wraps it in a
RuntimeException if its type cannot be
narrowed. |
<T1 extends Throwable,T2 extends Throwable> |
as(Class<T1> clazz1,
Class<T2> clazz2)
Rethrows the fault with a narrower type, or wraps it in
RuntimeException if its type cannot be
narrowed. |
<T1 extends Throwable,T2 extends Throwable,T3 extends Throwable> |
as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3)
Rethrows the fault with a narrower type, or wraps it in
RuntimeException if its type cannot be
narrowed. |
<T1 extends Throwable,T2 extends Throwable,T3 extends Throwable,T4 extends Throwable> |
as(Class<T1> clazz1,
Class<T2> clazz2,
Class<T3> clazz3,
Class<T4> clazz4)
Rethrows the fault with a narrower type, or wraps it in
RuntimeException if its type cannot be
narrowed. |
public <T1 extends Throwable> RuntimeException as(Class<T1> clazz1) throws T1 extends Throwable
RuntimeException if its type cannot be
narrowed.clazz1 - the narrower typeT1 - the narrower typeT1 extends Throwablepublic <T1 extends Throwable,T2 extends Throwable> RuntimeException as(Class<T1> clazz1, Class<T2> clazz2) throws T1 extends Throwable, T2 extends Throwable
RuntimeException if its type cannot be
narrowed.clazz1 - the narrower typeclazz2 - an alternative narrower typeT1 - the narrower typeT2 - the second narrower typeT1 extends Throwablepublic <T1 extends Throwable,T2 extends Throwable,T3 extends Throwable> RuntimeException as(Class<T1> clazz1, Class<T2> clazz2, Class<T3> clazz3) throws T1 extends Throwable, T2 extends Throwable, T3 extends Throwable
RuntimeException if its type cannot be
narrowed.clazz1 - the narrower typeclazz2 - an alternative narrower typeclazz3 - an alternative narrower typeT1 - the narrower typeT2 - the second narrower typeT3 - the second narrower typeT1 extends Throwablepublic <T1 extends Throwable,T2 extends Throwable,T3 extends Throwable,T4 extends Throwable> RuntimeException 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
RuntimeException if its type cannot be
narrowed.clazz1 - the narrower typeclazz2 - an alternative narrower typeclazz3 - an alternative narrower typeclazz4 - an alternative narrower typeT1 - the narrower typeT2 - the second narrower typeT3 - the second narrower typeT4 - the second narrower typeT1 extends ThrowableCopyright © 2019. All Rights Reserved.