@Produces(value="application/json") public class JsonError extends AbstractResource<JsonError>
Modifier and Type | Field and Description |
---|---|
static Argument<JsonError> |
TYPE
The argument type.
|
Constructor and Description |
---|
JsonError(java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getLogref() |
java.lang.String |
getMessage() |
java.util.Optional<java.lang.String> |
getPath() |
JsonError |
logref(java.lang.String logref)
Sets the logref.
|
JsonError |
path(java.lang.String path)
Sets the path.
|
void |
setMessage(java.lang.String message) |
java.lang.String |
toString() |
embedded, embedded, embedded, getEmbedded, getLinks, link, link, setLinks
public JsonError(java.lang.String message)
message
- The messagepublic void setMessage(java.lang.String message)
message
- The messagepublic java.lang.String getMessage()
public java.util.Optional<java.lang.String> getLogref()
public java.util.Optional<java.lang.String> getPath()
public JsonError path(@Nullable java.lang.String path)
path
- The pathpublic JsonError logref(@Nullable java.lang.String logref)
logref
- The logrefpublic java.lang.String toString()
toString
in class java.lang.Object