Search in sources :

Example 11 with LocalDBException

use of password.pwm.util.localdb.LocalDBException in project pwm by pwm-project.

the class AdminServlet method processReportStatus.

@ActionHandler(action = "reportStatus")
private ProcessStatus processReportStatus(final PwmRequest pwmRequest) throws ChaiUnavailableException, PwmUnrecoverableException, IOException {
    try {
        final ReportStatusBean returnMap = ReportStatusBean.makeReportStatusData(pwmRequest.getPwmApplication().getReportService(), pwmRequest.getPwmSession().getSessionStateBean().getLocale());
        final RestResultBean restResultBean = RestResultBean.withData(returnMap);
        pwmRequest.outputJsonResult(restResultBean);
    } catch (LocalDBException e) {
        throw new PwmUnrecoverableException(e.getErrorInformation());
    }
    return ProcessStatus.Halt;
}
Also used : PwmUnrecoverableException(password.pwm.error.PwmUnrecoverableException) LocalDBException(password.pwm.util.localdb.LocalDBException) RestResultBean(password.pwm.ws.server.RestResultBean)

Aggregations

LocalDBException (password.pwm.util.localdb.LocalDBException)11 PwmUnrecoverableException (password.pwm.error.PwmUnrecoverableException)9 ErrorInformation (password.pwm.error.ErrorInformation)8 PwmOperationalException (password.pwm.error.PwmOperationalException)3 ChaiResponseSet (com.novell.ldapchai.cr.ChaiResponseSet)2 ChaiException (com.novell.ldapchai.exception.ChaiException)2 Configuration (password.pwm.config.Configuration)2 PwmException (password.pwm.error.PwmException)2 ResponseSet (com.novell.ldapchai.cr.ResponseSet)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 LinkedHashMap (java.util.LinkedHashMap)1 Timer (java.util.Timer)1 DatabaseAccessor (password.pwm.util.db.DatabaseAccessor)1 PwmNumberFormat (password.pwm.util.java.PwmNumberFormat)1 TimeDuration (password.pwm.util.java.TimeDuration)1 LocalDB (password.pwm.util.localdb.LocalDB)1 RestResultBean (password.pwm.ws.server.RestResultBean)1