Package | Description |
---|---|
fr.igred.omero.exception |
This package contains wrapper classes for OMERO exceptions and an exception handler.
|
Modifier and Type | Method and Description |
---|---|
ExceptionHandler<T> |
ExceptionHandler.handleOMEROException(String message)
Throws:
AccessException if DSAccessException was caught
ServiceException if DSOutOfServiceException was caught
The appropriate exception if ServerError was caught (see handleOMEROException(java.lang.Throwable, java.lang.String) )
|
ExceptionHandler<T> |
ExceptionHandler.handleOMEROException(String message)
Throws:
AccessException if DSAccessException was caught
ServiceException if DSOutOfServiceException was caught
The appropriate exception if ServerError was caught (see handleOMEROException(java.lang.Throwable, java.lang.String) )
|
ExceptionHandler<T> |
ExceptionHandler.handleServerAndService(String message)
Checks if a ServerError or a DSOutOfService was thrown and handles the exception according to the cause.
|
ExceptionHandler<T> |
ExceptionHandler.handleServerAndService(String message)
Checks if a ServerError or a DSOutOfService was thrown and handles the exception according to the cause.
|
static <I,R> ExceptionHandler<R> |
ExceptionHandler.of(I input,
ExceptionHandler.ThrowingFunction<? super I,? extends R,? extends Exception> mapper)
Creates an ExceptionHandler from an object and a function.
|
static <I,R> ExceptionHandler<R> |
ExceptionHandler.of(I input,
ExceptionHandler.ThrowingFunction<? super I,? extends R,? extends Exception> mapper)
Creates an ExceptionHandler from an object and a function.
|
static <I> ExceptionHandler<I> |
ExceptionHandler.ofConsumer(I input,
ExceptionHandler.ThrowingConsumer<? super I,? extends Exception> consumer)
Creates an ExceptionHandler from an object and a function with no return value.
|
static <I> ExceptionHandler<I> |
ExceptionHandler.ofConsumer(I input,
ExceptionHandler.ThrowingConsumer<? super I,? extends Exception> consumer)
Creates an ExceptionHandler from an object and a function with no return value.
|
<E extends Throwable> |
ExceptionHandler.rethrow(Class<E> type)
Throws an exception from the specified type, if one was caught.
|
<E extends Throwable> |
ExceptionHandler.rethrow(Class<E> type)
Throws an exception from the specified type, if one was caught.
|
<E extends Throwable,F extends Throwable> |
ExceptionHandler.rethrow(Class<E> type,
ExceptionHandler.ExceptionWrapper<? super E,? extends F> mapper,
String message)
Throws an exception converted from the specified type, if one was caught.
|
<E extends Throwable,F extends Throwable> |
ExceptionHandler.rethrow(Class<E> type,
ExceptionHandler.ExceptionWrapper<? super E,? extends F> mapper,
String message)
Throws an exception converted from the specified type, if one was caught.
|
Copyright © 2020–2023 GReD. All rights reserved.