private static String getStringForDate(final Date date) throws ScimException { try { return JsonUtils.getObjectWriter().writeValueAsString(date); } catch(JsonProcessingException ex) { // this really should not happen, but we will handle it and // translate to a SCIM exception just in case. throw new ServerErrorException(ex.getMessage()); } }
new ServerErrorException(exception.getMessage()).getScimError();
private static String getStringForDate(final Date date) throws ScimException { try { return JsonUtils.getObjectWriter().writeValueAsString(date); } catch(JsonProcessingException ex) { // this really should not happen, but we will handle it and // translate to a SCIM exception just in case. throw new ServerErrorException(ex.getMessage()); } }
private static Date getDateForString(final String dateString) throws ScimException { try { return JsonUtils.getObjectReader().forType(Date.class). readValue(dateString); } catch(JsonProcessingException ex) { throw new ServerErrorException(ex.getMessage()); } catch(IOException ex) { throw new ServerErrorException(ex.getMessage()); } }
private static Date getDateForString(final String dateString) throws ScimException { try { return JsonUtils.getObjectReader().forType(Date.class). readValue(dateString); } catch(JsonProcessingException ex) { throw new ServerErrorException(ex.getMessage()); } catch(IOException ex) { throw new ServerErrorException(ex.getMessage()); } }
throw new ServerErrorException(ex.getMessage());
throw new ServerErrorException(ex.getMessage());
throw new ServerErrorException(ex.getMessage());
throw new ServerErrorException("Value at path " + path + " is not a valid base64 string"); throw new ServerErrorException(e.getMessage());
throw new ServerErrorException(ex.getMessage());
throw new ServerErrorException("Value at path " + path + " is not a valid base64 string"); throw new ServerErrorException(e.getMessage());
throw new ServerErrorException(e.getMessage());
throw new ServerErrorException(e.getMessage());
throw new ServerErrorException(e.getMessage(), null, e);
case 412 : return new PreconditionFailedException(scimError, null, cause); case 500 : return new ServerErrorException(scimError, cause);
case 412 : return new PreconditionFailedException(scimError, null, cause); case 500 : return new ServerErrorException(scimError, cause);