public class UnsuccessfulItemError
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the error that occurred. For more information about errors, see Error Codes.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
code
The error code.
|
private java.lang.String |
message
The error message accompanying the error code.
|
Constructor and Description |
---|
UnsuccessfulItemError() |
Modifier and Type | Method and Description |
---|---|
UnsuccessfulItemError |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCode()
The error code.
|
java.lang.String |
getMessage()
The error message accompanying the error code.
|
int |
hashCode() |
void |
setCode(java.lang.String code)
The error code.
|
void |
setMessage(java.lang.String message)
The error message accompanying the error code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UnsuccessfulItemError |
withCode(java.lang.String code)
The error code.
|
UnsuccessfulItemError |
withMessage(java.lang.String message)
The error message accompanying the error code.
|
private java.lang.String code
The error code.
private java.lang.String message
The error message accompanying the error code.
public void setCode(java.lang.String code)
The error code.
code
- The error code.public java.lang.String getCode()
The error code.
public UnsuccessfulItemError withCode(java.lang.String code)
The error code.
code
- The error code.public void setMessage(java.lang.String message)
The error message accompanying the error code.
message
- The error message accompanying the error code.public java.lang.String getMessage()
The error message accompanying the error code.
public UnsuccessfulItemError withMessage(java.lang.String message)
The error message accompanying the error code.
message
- The error message accompanying the error code.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UnsuccessfulItemError clone()
clone
in class java.lang.Object