Uses of Class
fr.igred.omero.exception.ExceptionHandler
Packages that use ExceptionHandler
Package
Description
This package contains wrapper classes for exceptions and an exception handler.
-
Uses of ExceptionHandler in fr.igred.omero.exception
Methods in fr.igred.omero.exception that return ExceptionHandlerModifier and TypeMethodDescriptionExceptionHandler.handleException(String message) Deprecated.ExceptionHandler.handleOMEROException(String message) Throws:AccessExceptionifDSAccessExceptionwas caughtServiceExceptionifDSOutOfServiceExceptionwas caught The appropriate exception ifServerErrorwas 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:ServiceExceptionifDSOutOfServiceExceptionwas caughtAccessExceptionifDSAccessExceptionwas caughtExceptionHandler.handleServiceOrServer(String message) Deprecated.Throws:ServiceExceptionifDSOutOfServiceExceptionwas caughtOMEROServerErrorifServerErrorwas 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.
AccessExceptionifDSAccessExceptionwas caughtServiceExceptionifDSOutOfServiceExceptionwas caught The appropriate exception ifServerErrorwas caught (seehandleOMEROException(java.lang.Throwable, java.lang.String))