public class OCastDeviceSettingsError implements LoggableError
Represents an error from the device settings service.
Constructor and Description |
---|
OCastDeviceSettingsError(OCastDeviceSettingsError.Status status,
java.lang.String message,
java.lang.Throwable cause)
Creates an instance of
class OCastDeviceSettingsError . |
OCastDeviceSettingsError(OCastError error)
Creates an instance of
class OCastDeviceSettingsError from a generic class OCastError . |
Modifier and Type | Method and Description |
---|---|
OCastDeviceSettingsError.Status |
component1()
The error status.
|
java.lang.String |
component2()
The error message.
|
java.lang.Throwable |
component3()
The cause of the error,
|
OCastDeviceSettingsError |
copy(OCastDeviceSettingsError.Status status,
java.lang.String message,
java.lang.Throwable cause)
Creates an instance of
class OCastDeviceSettingsError . |
boolean |
equals(java.lang.Object p) |
java.lang.Throwable |
getCause()
The cause of the error,
|
java.lang.String |
getMessage()
The error message.
|
OCastDeviceSettingsError.Status |
getStatus()
The error status.
|
int |
hashCode() |
java.lang.String |
toString() |
getCause, getMessage
public OCastDeviceSettingsError(@NotNull OCastDeviceSettingsError.Status status, @NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
Creates an instance of class OCastDeviceSettingsError
.
status
- The error status.message
- The error message.cause
- The cause of the error, if any.class OCastDeviceSettingsError
public OCastDeviceSettingsError(@NotNull OCastError error)
Creates an instance of class OCastDeviceSettingsError
from a generic class OCastError
.
error
- The generic OCast error.class OCastDeviceSettingsError
,
class OCastError
@NotNull public OCastDeviceSettingsError.Status getStatus()
The error status.
@NotNull public java.lang.String getMessage()
The error message.
@Nullable public java.lang.Throwable getCause()
The cause of the error,
if any.
@NotNull public OCastDeviceSettingsError.Status component1()
The error status.
@NotNull public java.lang.String component2()
The error message.
@Nullable public java.lang.Throwable component3()
The cause of the error,
if any.
@NotNull public OCastDeviceSettingsError copy(@NotNull OCastDeviceSettingsError.Status status, @NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
Creates an instance of class OCastDeviceSettingsError
.
class OCastDeviceSettingsError
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable java.lang.Object p)