public class OCastError implements LoggableError
Represents a generic OCast error.
| Constructor and Description |
|---|
OCastError(int code,
java.lang.String message,
java.lang.Throwable cause)
Creates an
class OCastError. |
OCastError(java.lang.String message,
java.lang.Throwable cause)
Creates an
class OCastError with a CLIENT_ERROR status. |
| Modifier and Type | Method and Description |
|---|---|
int |
component1()
The error code.
|
java.lang.String |
component2()
The error message.
|
java.lang.Throwable |
component3()
The cause of the error,
|
OCastError |
copy(int code,
java.lang.String message,
java.lang.Throwable cause)
Creates an
class OCastError. |
boolean |
equals(java.lang.Object p) |
java.lang.Throwable |
getCause()
The cause of the error,
|
int |
getCode()
The error code.
|
java.lang.String |
getMessage()
The error message.
|
int |
hashCode() |
java.lang.String |
toString() |
getCause, getMessagepublic OCastError(int code,
@NotNull
java.lang.String message,
@Nullable
java.lang.Throwable cause)
Creates an class OCastError.
code - The error code.message - The error message.cause - The cause of the error, if any.class OCastErrorpublic OCastError(@NotNull
java.lang.String message,
@Nullable
java.lang.Throwable cause)
Creates an class OCastError with a CLIENT_ERROR status.
class OCastErrorpublic int getCode()
The error code.
@NotNull public java.lang.String getMessage()
The error message.
@Nullable public java.lang.Throwable getCause()
The cause of the error,
if any.
public int component1()
The error code.
@NotNull public java.lang.String component2()
The error message.
@Nullable public java.lang.Throwable component3()
The cause of the error,
if any.
@NotNull public OCastError copy(int code, @NotNull java.lang.String message, @Nullable java.lang.Throwable cause)
Creates an class OCastError.
class OCastError@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)