@Generated(value="")
public class Error
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected @NotNull java.lang.Integer |
errorCode |
protected @NotEmpty java.lang.String |
errorDescription |
protected @NotEmpty java.lang.String |
message |
protected @NotNull java.lang.Integer |
status |
java.lang.String |
xClassName |
Constructor and Description |
---|
Error() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.Integer |
getErrorCode() |
java.lang.String |
getErrorDescription() |
java.lang.String |
getMessage() |
java.lang.Integer |
getStatus() |
int |
hashCode() |
void |
setErrorCode(java.lang.Integer errorCode) |
void |
setErrorCode(com.liferay.petra.function.UnsafeSupplier<java.lang.Integer,java.lang.Exception> errorCodeUnsafeSupplier) |
void |
setErrorDescription(java.lang.String errorDescription) |
void |
setErrorDescription(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> errorDescriptionUnsafeSupplier) |
void |
setMessage(java.lang.String message) |
void |
setMessage(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> messageUnsafeSupplier) |
void |
setStatus(java.lang.Integer status) |
void |
setStatus(com.liferay.petra.function.UnsafeSupplier<java.lang.Integer,java.lang.Exception> statusUnsafeSupplier) |
static Error |
toDTO(java.lang.String json) |
java.lang.String |
toString() |
static Error |
unsafeToDTO(java.lang.String json) |
@NotNull protected @NotNull java.lang.Integer errorCode
@NotEmpty protected @NotEmpty java.lang.String errorDescription
@NotEmpty protected @NotEmpty java.lang.String message
@NotNull protected @NotNull java.lang.Integer status
public java.lang.String xClassName
public static Error toDTO(java.lang.String json)
public static Error unsafeToDTO(java.lang.String json)
public java.lang.Integer getErrorCode()
public void setErrorCode(java.lang.Integer errorCode)
public void setErrorCode(com.liferay.petra.function.UnsafeSupplier<java.lang.Integer,java.lang.Exception> errorCodeUnsafeSupplier)
public java.lang.String getErrorDescription()
public void setErrorDescription(java.lang.String errorDescription)
public void setErrorDescription(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> errorDescriptionUnsafeSupplier)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public void setMessage(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> messageUnsafeSupplier)
public java.lang.Integer getStatus()
public void setStatus(java.lang.Integer status)
public void setStatus(com.liferay.petra.function.UnsafeSupplier<java.lang.Integer,java.lang.Exception> statusUnsafeSupplier)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object