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
Constructors -
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, toStringMethods 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:JsonErrorSets the path. -
logref
Description copied from class:JsonErrorSets the logref. -
link
Description copied from class:AbstractResourceAdd a link with the given reference.- Overrides:
linkin classAbstractResource<JsonError>- Parameters:
ref- The referencelink- The link- Returns:
- This JsonError
-
link
Description copied from class:AbstractResourceAdd a link with the given reference.- Overrides:
linkin classAbstractResource<JsonError>- Parameters:
ref- The referencelink- The link- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResourceAdd an embedded resource with the given reference.- Overrides:
embeddedin classAbstractResource<JsonError>- Parameters:
ref- The referenceresource- The resource- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResourceAdd an embedded resource with the given reference.- Overrides:
embeddedin classAbstractResource<JsonError>- Parameters:
ref- The referenceresource- The resource- Returns:
- This JsonError
-
embedded
Description copied from class:AbstractResourceAdd an embedded resource with the given reference.- Overrides:
embeddedin classAbstractResource<JsonError>- Parameters:
ref- The referenceresourceList- The resources- Returns:
- This JsonError
-