public class ErrorInfo
The information describing an error.
This is returned by a exception handler when an exception occurs and is used to build a response.
| Constructor and Description |
|---|
ErrorInfo(int status,
java.lang.String message)
The information describing an error.
|
| Modifier and Type | Method and Description |
|---|---|
int |
component1() |
java.lang.String |
component2() |
ErrorInfo |
copy(int status,
java.lang.String message)
The information describing an error.
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getMessage() |
int |
getStatus() |
int |
hashCode() |
java.lang.String |
toString() |
public ErrorInfo(int status,
@Nullable
java.lang.String message)
The information describing an error.
This is returned by a exception handler when an exception occurs and is used to build a response.
public int getStatus()
@Nullable public java.lang.String getMessage()
public int component1()
@Nullable public java.lang.String component2()
@NotNull public ErrorInfo copy(int status, @Nullable java.lang.String message)
The information describing an error.
This is returned by a exception handler when an exception occurs and is used to build a response.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)