com.cedarsoft.exceptions
Class ErrorCode.Prefix

java.lang.Object
  extended by 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.


Constructor Summary
ErrorCode.Prefix(String prefix)
          Creates a new prefix
 
Method Summary
 String asString()
          Returns the string representation of this prefix
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorCode.Prefix

public ErrorCode.Prefix(@Nonnull
                        String prefix)
Creates a new prefix

Parameters:
prefix - the prefix
Method Detail

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.