Package io.micronaut.http.hateoas
Class VndError
java.lang.Object
io.micronaut.http.hateoas.AbstractResource<JsonError>
io.micronaut.http.hateoas.JsonError
io.micronaut.http.hateoas.VndError
- All Implemented Interfaces:
Resource
A type that can be used to represent JSON errors that returns a content type of Vnd.Error.
- Since:
- 1.1
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionembedded
(CharSequence ref, Resource resource) Add an embedded resource with the given reference.embedded
(CharSequence ref, Resource... resource) Add an embedded resource with the given reference.embedded
(CharSequence ref, List<Resource> resourceList) Add an embedded resource with the given reference.link
(@Nullable CharSequence ref, @Nullable Link link) Add a link with the given reference.link
(@Nullable CharSequence ref, @Nullable String link) Add a link with the given reference.Sets the logref.Sets the path.Methods inherited from class io.micronaut.http.hateoas.JsonError
getLogref, getMessage, getPath, setMessage, toString
Methods inherited from class io.micronaut.http.hateoas.AbstractResource
getEmbedded, getLinks, setEmbedded, setLinks
-
Constructor Details
-
VndError
- Parameters:
message
- The message
-
-
Method Details
-
path
Description copied from class:JsonError
Sets the path. -
logref
Description copied from class:JsonError
Sets the logref. -
link
Description copied from class:AbstractResource
Add a link with the given reference.- Overrides:
link
in classAbstractResource<JsonError>
- Parameters:
ref
- The referencelink
- The link- Returns:
- This JsonError
-
link
Description copied from class:AbstractResource
Add a link with the given reference.- Overrides:
link
in classAbstractResource<JsonError>
- Parameters:
ref
- The referencelink
- The link- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResource
Add an embedded resource with the given reference.- Overrides:
embedded
in classAbstractResource<JsonError>
- Parameters:
ref
- The referenceresource
- The resource- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResource
Add an embedded resource with the given reference.- Overrides:
embedded
in classAbstractResource<JsonError>
- Parameters:
ref
- The referenceresource
- The resource- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResource
Add an embedded resource with the given reference.- Overrides:
embedded
in classAbstractResource<JsonError>
- Parameters:
ref
- The referenceresourceList
- The resources- Returns:
- This JsonError
-