In case of failures org.keycloak.services.admin.UsersResource returns an
ErrorResponse or throws an exception (e.g. BadRequestException,
NotFoundException...) depending if the return type of the corresponding
method is Response or void. This leads to inconsistent error
representations on the client side.
org.keycloak.services.ErrorResponse wraps an ErrorRepresentation.
org.keycloak.services.ErrorResponseExceptions defines another
representation for errors
org.jboss.resteasy.spi.{BadRequestException|NotFoundException|Inte...}
just wraps a string
Would anyone mind if I define a new Exception wraps an
ErrorRepresentation for those methods that don't return a response? Or
does an exception of this kind already exist. It should ideally be named
ErrorResponseException but that one already exists...
Benjamin
Show replies by date