org.gcube.data.streams.dsl
Class Faults.OngoingRethrowClause

java.lang.Object
  extended by org.gcube.data.streams.dsl.Faults.OngoingRethrowClause
Enclosing class:
Faults

public static class Faults.OngoingRethrowClause
extends Object

Fault narrowing clause;

Author:
Fabio Simeoni

Method Summary
<T1 extends Throwable>
RuntimeException
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>
RuntimeException
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>
RuntimeException
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>
RuntimeException
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

as

public <T1 extends Throwable> RuntimeException as(Class<T1> clazz1)
                    throws T1 extends Throwable
Rethrows the fault with a narrower type, or wraps it in a RuntimeException if its type cannot be narrowed.

Parameters:
clazz1 - the narrower type
Returns:
unused, allows clients to throw invocations of this method
Throws:
T1 - the narrower type
T1 extends Throwable

as

public <T1 extends Throwable,T2 extends Throwable> RuntimeException as(Class<T1> clazz1,
                                                                       Class<T2> clazz2)
                    throws T1 extends Throwable,
                           T2 extends Throwable
Rethrows the fault with a narrower type, or wraps it in RuntimeException if its type cannot be narrowed.

Parameters:
clazz1 - the narrower type
clazz2 - an alternative narrower type
Returns:
unused, allows clients to throw invocations of this method
Throws:
T1 - the narrower type
T2 - the second narrower type
T1 extends Throwable

as

public <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
Rethrows the fault with a narrower type, or wraps it in RuntimeException if its type cannot be narrowed.

Parameters:
clazz1 - the narrower type
clazz2 - an alternative narrower type
clazz3 - an alternative narrower type
Returns:
unused, allows clients to throw invocations of this method
Throws:
T1 - the narrower type
T2 - the second narrower type
T3 - the second narrower type
T1 extends Throwable

as

public <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
Rethrows the fault with a narrower type, or wraps it in RuntimeException if its type cannot be narrowed.

Parameters:
clazz1 - the narrower type
clazz2 - an alternative narrower type
clazz3 - an alternative narrower type
clazz4 - an alternative narrower type
Returns:
unused, allows clients to throw invocations of this method
Throws:
T1 - the narrower type
T2 - the second narrower type
T3 - the second narrower type
T4 - the second narrower type
T1 extends Throwable


Copyright © 2012. All Rights Reserved.