public final class ResultError<C>
extends java.lang.Object
Constructor and Description |
---|
ResultError(C code,
java.lang.String message,
java.lang.String debugCode,
java.lang.String debugMessage)
Creates a new
ResultError object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
C |
getCode()
Provides the error code.
|
java.lang.String |
getDebugCode()
Provides a more detailed error code for troubleshooting.
|
java.lang.String |
getDebugMessage()
Provides a human-readable message containing additional debug information related to the
possible cause of the error.
|
java.lang.String |
getMessage()
Provides a displayable message that summarizes the possible cause of the error.
|
int |
hashCode() |
java.lang.String |
toString() |
public ResultError(@NonNull C code, @NonNull java.lang.String message, @NonNull java.lang.String debugCode, @NonNull java.lang.String debugMessage)
Creates a new ResultError
object.
This method is provided for testing purposes.
@NonNull public C getCode()
@NonNull public java.lang.String getMessage()
@NonNull public java.lang.String getDebugCode()
@NonNull public java.lang.String getDebugMessage()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object