public class ErrorInfo extends Object implements Serializable
Error information.
| Constructor and Description |
|---|
ErrorInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCode()
The error code.
|
String |
getMessage()
The error message.
|
int |
hashCode() |
void |
setCode(String code)
The error code.
|
void |
setMessage(String message)
The error message.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ErrorInfo |
withCode(String code)
The error code.
|
ErrorInfo |
withMessage(String message)
The error message.
|
public String getCode()
The error code.
The error code.
public void setCode(String code)
The error code.
code - The error code.
public ErrorInfo withCode(String code)
The error code.
Returns a reference to this object so that method calls can be chained together.
code - The error code.
public String getMessage()
The error message.
The error message.
public void setMessage(String message)
The error message.
message - The error message.
public ErrorInfo withMessage(String message)
The error message.
Returns a reference to this object so that method calls can be chained together.
message - The error message.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.