Package de.learnlib.exception
Class MappedException<O>
- java.lang.Object
-
- de.learnlib.exception.MappedException<O>
-
- Type Parameters:
O
- output symbol type
public final class MappedException<O> extends Object
A mapped exception allows one to gracefully handle exceptions thrown, e.g., during aSUL's step method
by providing information about the output symbol that should be emitted instead and subsequent outputs.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<O>
getSubsequentStepsOutput()
O
getThisStepOutput()
static <O> MappedException<O>
ignoreAndContinue(O output)
static <O> MappedException<O>
pass(SULException exception)
static <O> MappedException<O>
repeatOutput(O output)
static <O> MappedException<O>
repeatOutput(O thisStepOutput, O subsequentOutput)
-
-
-
Method Detail
-
ignoreAndContinue
public static <O> MappedException<O> ignoreAndContinue(O output)
-
repeatOutput
public static <O> MappedException<O> repeatOutput(O output)
-
repeatOutput
public static <O> MappedException<O> repeatOutput(O thisStepOutput, O subsequentOutput)
-
pass
public static <O> MappedException<O> pass(SULException exception)
-
getThisStepOutput
public O getThisStepOutput()
-
-