@Immutable @LevelUpApi(contract=PUBLIC) public final class Error extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Error> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Error(String message,
String object,
String property)
Deprecated.
Provided for SDK backwards compatibility only. Newer code should use
Error(String, String, String, String) instead. This
constructor omits the code field. |
Error(String code,
String message,
String object,
String property) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
String |
getCode()
A machine-readable description of the error.
|
String |
getMessage()
The message for the error that occurred.
|
String |
getObject()
The object that this error is for.
|
String |
getProperty()
The property of the object that this error is for.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Error> CREATOR
Parcelable
interface.@Deprecated public Error(String message, String object, String property)
Error(String, String, String, String)
instead. This
constructor omits the code
field.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public String getCode()
public String getMessage()
public String getObject()
public String getProperty()