Class SnapshotExceptionHandler
java.lang.Object
org.gridgain.internal.rest.snapshot.exception.SnapshotExceptionHandler
- All Implemented Interfaces:
io.micronaut.http.server.exceptions.ExceptionHandler<org.gridgain.internal.snapshots.SnapshotException,io.micronaut.http.HttpResponse<? extends org.apache.ignite.internal.rest.api.Problem>>
@Singleton
@Requires(classes={org.gridgain.internal.snapshots.SnapshotException.class,io.micronaut.http.server.exceptions.ExceptionHandler.class})
public class SnapshotExceptionHandler
extends Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<org.gridgain.internal.snapshots.SnapshotException,io.micronaut.http.HttpResponse<? extends org.apache.ignite.internal.rest.api.Problem>>
Handles
SnapshotException and represents it as a rest response.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.http.HttpResponse<? extends org.apache.ignite.internal.rest.api.Problem>handle(io.micronaut.http.HttpRequest request, org.gridgain.internal.snapshots.SnapshotException exception)
-
Constructor Details
-
SnapshotExceptionHandler
public SnapshotExceptionHandler()
-
-
Method Details
-
handle
public io.micronaut.http.HttpResponse<? extends org.apache.ignite.internal.rest.api.Problem> handle(io.micronaut.http.HttpRequest request, org.gridgain.internal.snapshots.SnapshotException exception) - Specified by:
handlein interfaceio.micronaut.http.server.exceptions.ExceptionHandler<org.gridgain.internal.snapshots.SnapshotException,io.micronaut.http.HttpResponse<? extends org.apache.ignite.internal.rest.api.Problem>>
-