Uses of Class
fr.igred.omero.exception.ExceptionHandler
Package
Description
This package contains wrapper classes for exceptions and an exception handler.
-
Uses of ExceptionHandler in fr.igred.omero.exception
Modifier and TypeMethodDescriptionExceptionHandler.handleException
(String message) Deprecated.ExceptionHandler.handleOMEROException
(String message) Throws:AccessException
ifDSAccessException
was caughtServiceException
ifDSOutOfServiceException
was caught The appropriate exception ifServerError
was caught (seehandleOMEROException(java.lang.Throwable, java.lang.String)
)ExceptionHandler.handleServerAndService
(String message) Checks if a ServerError or a DSOutOfService was thrown and handles the exception according to the cause.ExceptionHandler.handleServiceOrAccess
(String message) Deprecated.Throws:ServiceException
ifDSOutOfServiceException
was caughtAccessException
ifDSAccessException
was caughtExceptionHandler.handleServiceOrServer
(String message) Deprecated.Throws:ServiceException
ifDSOutOfServiceException
was caughtOMEROServerError
ifServerError
was caughtstatic <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.<E extends Throwable>
ExceptionHandler<T>Throws an exception from the specified type, if one was caught.<E extends Throwable,
F extends Throwable>
ExceptionHandler<T>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.
AccessException
ifDSAccessException
was caughtServiceException
ifDSOutOfServiceException
was caught The appropriate exception ifServerError
was caught (seehandleOMEROException(java.lang.Throwable, java.lang.String)
)