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