public class ExceptionHandler extends Object
Constructor and Description |
---|
ExceptionHandler(OAuth2Representation representation,
BaseURLProviderFactory baseURLProviderFactory,
OAuth2RequestFactory requestFactory,
JacksonRepresentationFactory jacksonRepresentationFactory)
Constructs a new ExceptionHandler.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Throwable throwable,
org.restlet.Context context,
org.restlet.Request request,
org.restlet.Response response)
Handles any exception that is thrown when processing a OAuth2 request.
|
void |
handle(Throwable throwable,
org.restlet.Response response)
Handles general OAuth2 exceptions from Restlet endpoints.
|
@Inject public ExceptionHandler(OAuth2Representation representation, BaseURLProviderFactory baseURLProviderFactory, OAuth2RequestFactory requestFactory, JacksonRepresentationFactory jacksonRepresentationFactory)
representation
- An instance of the OAuth2Representation.baseURLProviderFactory
- The factory to create BaseURLProvider
instances.jacksonRepresentationFactory
- The factory to create JacksonRepresentation
instances.public void handle(Throwable throwable, org.restlet.Context context, org.restlet.Request request, org.restlet.Response response)
throwable
- The throwable.context
- The Restlet context.request
- The Restlet request.response
- The Restlet response.public void handle(Throwable throwable, org.restlet.Response response)
throwable
- The throwable.response
- The Restlet response.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.