Search in sources :

Example 1 with FinalizationException

use of org.openecard.mdlw.sal.exceptions.FinalizationException in project open-ecard by ecsec.

the class MiddlewareSAL method terminate.

@Override
public TerminateResponse terminate(Terminate parameters) {
    TerminateResponse resp = WSHelper.makeResponse(TerminateResponse.class, WSHelper.makeResultOK());
    try {
        eventMan.terminate();
        mwModule.destroy();
    } catch (FinalizationException ex) {
        String msg = "Failed to terminate Middleware.";
        LOG.error(msg, ex);
        resp.setResult(WSHelper.makeResultError(ECardConstants.Minor.Disp.COMM_ERROR, msg));
    }
    return resp;
}
Also used : TerminateResponse(iso.std.iso_iec._24727.tech.schema.TerminateResponse) FinalizationException(org.openecard.mdlw.sal.exceptions.FinalizationException)

Aggregations

TerminateResponse (iso.std.iso_iec._24727.tech.schema.TerminateResponse)1 FinalizationException (org.openecard.mdlw.sal.exceptions.FinalizationException)1