com.cedarsoft.exceptions
Class ErrorCode.Prefix
java.lang.Object
com.cedarsoft.exceptions.ErrorCode.Prefix
- Enclosing class:
- ErrorCode
public static class ErrorCode.Prefix
- extends Object
Represents a prefix for error codes.
The prefix is used to structure the error codes.
The ids are unique within a prefix.
ErrorCode.Prefix
public ErrorCode.Prefix(@Nonnull
String prefix)
- Creates a new prefix
- Parameters:
prefix - the prefix
asString
@Nonnull
public String asString()
- Returns the string representation of this prefix
- Returns:
- the string representation
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 cedarsoft GmbH. All Rights Reserved.