Package io.micronaut.http.hateoas
Class JsonError
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
VndError
A class that can be used to represent JSON errors that complies to Vnd.Error without the content type requirements.
- Since:
- 1.1
- Author:
- Graeme Rocher
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.http.hateoas.AbstractResource
embedded, embedded, embedded, getEmbedded, getLinks, link, link, setEmbedded, setLinks
-
Field Details
-
TYPE
The argument type.- Since:
- 1.3.3
-
-
Constructor Details
-
JsonError
- Parameters:
message
- The message
-
-
Method Details
-
setMessage
- Parameters:
message
- The message
-
getMessage
- Returns:
- The message
-
getLogref
- Returns:
- The logref
-
getPath
- Returns:
- The path
-
path
Sets the path.- Parameters:
path
- The path- Returns:
- This error object
-
logref
Sets the logref.- Parameters:
logref
- The logref- Returns:
- This error object
-
toString
-