public final class ResourceExceptionsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static ResourceException |
adapt(Throwable t)
Adapts a
Throwable to a ResourceException . |
static ResourceException |
notSupported(Request request)
Creates a NotSupportedException.
|
static ResourceException |
notSupportedOnCollection(Request request)
Creates a NotSupportedException.
|
static ResourceException |
notSupportedOnInstance(Request request)
Creates a NotSupportedException.
|
public static ResourceException adapt(Throwable t)
Throwable
to a ResourceException
. If the
Throwable
is an JSON JsonValueException
then an
appropriate ResourceException
is returned, otherwise an
InternalServerErrorException
is returned.t
- The Throwable
to be converted.public static ResourceException notSupported(Request request)
request
- the crest requestpublic static ResourceException notSupportedOnCollection(Request request)
request
- the crest requestpublic static ResourceException notSupportedOnInstance(Request request)
request
- the crest requestCopyright © 2025 Open Identity Platform Community. All rights reserved.