com.cedarsoft.exceptions
Class ErrorCode.Prefix
java.lang.Object
com.cedarsoft.exceptions.ErrorCode.Prefix
- Enclosing class:
- ErrorCode
public static class ErrorCode.Prefix
- extends java.lang.Object
Represents a prefix for error codes.
The prefix is used to structure the error codes.
The ids are unique within a prefix.
|
Constructor Summary |
ErrorCode.Prefix(java.lang.String prefix)
Creates a new prefix |
|
Method Summary |
java.lang.String |
asString()
Returns the string representation of this prefix |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ErrorCode.Prefix
public ErrorCode.Prefix(@Nonnull
java.lang.String prefix)
- Creates a new prefix
- Parameters:
prefix - the prefix
asString
@Nonnull
public java.lang.String asString()
- Returns the string representation of this prefix
- Returns:
- the string representation
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2011 cedarsoft GmbH. All Rights Reserved.