org.ejen
Class EjenErrors.EjenError

java.lang.Object
  |
  +--org.ejen.EjenErrors.EjenError
Enclosing class:
EjenErrors

public static class EjenErrors.EjenError
extends Object

Class that represents one error.

Version:
1.0.
Author:
F. Wolff.

Constructor Summary
EjenErrors.EjenError(String name)
          Constructs an EjenError whose name is 'name'.
 
Method Summary
 Properties getMessages()
          Returns the messages of this EjenError as Properties.
 String getName()
          Returns the name of this EjenError.
 void putMessage(String id, String message)
          Adds a message into this EjenError with a name set to id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjenErrors.EjenError

public EjenErrors.EjenError(String name)
Constructs an EjenError whose name is 'name'.

Parameters:
name - name of this EjenError.
Method Detail

getName

public String getName()
Returns the name of this EjenError.

Returns:
the name of this EjenError.

getMessages

public Properties getMessages()
Returns the messages of this EjenError as Properties.

Returns:
the messages.

putMessage

public void putMessage(String id,
                       String message)
Adds a message into this EjenError with a name set to id.

Parameters:
id - name of the new message.