public class ExceptionControl extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExceptionControl.Catch<R>
scala.util.control.Exception.Catch
|
static class |
ExceptionControl.CatchBuilder |
static class |
ExceptionControl.HandlingByBuilder |
| Modifier and Type | Method and Description |
|---|---|
static ExceptionControl.CatchBuilder |
allCatch()
A Catch object which catches everything.
|
static ExceptionControl.CatchBuilder |
catching(Class<? extends Throwable>... catcher)
Creates a Catch object which will catch any of the supplied exceptions.
|
static ExceptionControl.CatchBuilder |
catchingPromiscuously(Class<? extends Throwable>... catcher)
Creates a Catch object which will catch any of the supplied exceptions.
|
static ExceptionControl.HandlingByBuilder |
handling(Class<? extends Throwable>... catcher)
Creates a Catch object which will catch any of the supplied exceptions.
|
static <R> ExceptionControl.Catch<R> |
ignoring(Class<? extends Throwable>... catcher)
Creates a Catch object which catches and ignores any of the supplied
exceptions.
|
static <R> ExceptionControl.Catch<R> |
ultimately(VoidFunction0 body)
Returns a Catch object with no catch logic and the argument as Finally.
|
public static ExceptionControl.CatchBuilder catching(Class<? extends Throwable>... catcher)
public static ExceptionControl.CatchBuilder catchingPromiscuously(Class<? extends Throwable>... catcher)
public static ExceptionControl.HandlingByBuilder handling(Class<? extends Throwable>... catcher)
public static <R> ExceptionControl.Catch<R> ignoring(Class<? extends Throwable>... catcher)
public static <R> ExceptionControl.Catch<R> ultimately(VoidFunction0 body)
public static ExceptionControl.CatchBuilder allCatch()
Copyright © 2015. All rights reserved.