org.gcube.data.streams.dsl
Class Faults

java.lang.Object
  extended by org.gcube.data.streams.dsl.Faults

public class Faults
extends Object

A simple DSL for fault conversion.

Author:
Fabio Simeoni

Nested Class Summary
static class Faults.OngoingRethrowClause
          Fault narrowing clause;
 
Constructor Summary
Faults()
           
 
Method Summary
static Faults.OngoingRethrowClause causeOf(RuntimeException fault)
          Indicates a fault to be rethrown with a narrower type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Faults

public Faults()
Method Detail

causeOf

public static Faults.OngoingRethrowClause causeOf(RuntimeException fault)
Indicates a fault to be rethrown with a narrower type.

Parameters:
fault - the fault
Returns:
the next clause in the sentence


Copyright © 2012. All Rights Reserved.