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