@ Path ( "{snapshotId}/error" ) @ POST @ Consumes ( MediaType . APPLICATION_JSON ) @ Produces ( MediaType . APPLICATION_JSON ) public Response error ( @ PathParam ( "snapshotId" ) String snapshotId , SnapshotErrorBridgeParameters params ) { try { Snapshot snapshot = snapshotManager . transferError ( snapshotId , params . getError ( ) ) ; log . info ( "Processed snapshot error notification: {}" , snapshot ) ; return Response . ok ( new SnapshotErrorBridgeResult ( snapshot . getStatus ( ) , snapshot . getStatusText ( ) ) ) . build ( ) ; } catch ( Exception ex ) { log . error ( ex . getMessage ( ) , ex ) ; return Response . serverError ( ) . entity ( new ResponseDetails ( ex . getMessage ( ) ) ) . build ( ) ; } }
Notifies the bridge that the snapshot process is not able to continue due to an error which cannot be resolved by the system processing the snapshot data .