@StableMinor(version="12.2", sinceVersion="8.0") public class ErrorEntity extends Object
Constructor and Description |
---|
ErrorEntity(Response.Status status)
Creates an error entity with a status but without a message.
|
ErrorEntity(String message)
Creates an error entity with a message but without status code.
|
ErrorEntity(String message,
int statusCode)
Creates an error entity with a message and status.
|
ErrorEntity(String message,
Response.Status status)
Creates an error entity with a message and status.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Returns the message stored in this error entity.
|
Integer |
getStatusCode()
Returns the status code stored in this error entity.
|
public ErrorEntity(String message)
message
- the message.public ErrorEntity(Response.Status status)
status
- the status.public ErrorEntity(String message, Response.Status status)
message
- the message.status
- the status.public ErrorEntity(String message, int statusCode)
message
- the message.status
- the status.public String getMessage()
null
if it was not specified.public Integer getStatusCode()
null
if it was not specified.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.