@Immutable
public class ErrorCode
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorCode.Prefix
Represents a prefix for error codes. The prefix is used to structure the error codes. The ids are unique within a prefix.
|
| Constructor and Description |
|---|
ErrorCode(ErrorCode.Prefix prefix,
int id)
Creates a new error code
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
format()
Returns the error code formatted as string
|
int |
getId()
Returns the id
|
ErrorCode.Prefix |
getPrefix()
Returns the prefix of the error code
|
int |
hashCode() |
java.lang.String |
toString() |
public ErrorCode(@Nonnull
ErrorCode.Prefix prefix,
int id)
Creates a new error code
prefix - org.jetbrains.dokka.NodeRenderContent@36246c5c: the prefixid - org.jetbrains.dokka.NodeRenderContent@2e75c64e: the id@Nonnull public ErrorCode.Prefix getPrefix()
Returns the prefix of the error code
public int getId()
Returns the id
@Nonnull public java.lang.String format()
Returns the error code formatted as string
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public int hashCode()