public class ErrorCode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorCode.Prefix
Represents a prefix for error codes.
|
| Constructor and Description |
|---|
ErrorCode(ErrorCode.Prefix prefix,
int id)
Creates a new error code
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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() |
String |
toString() |
public ErrorCode(@Nonnull ErrorCode.Prefix prefix, int id)
prefix - the prefixid - the id@Nonnull public ErrorCode.Prefix getPrefix()
public int getId()
@Nonnull public String format()
Copyright © 2007–2015 cedarsoft GmbH. All rights reserved.