org.codehaus.mojo.exception
Class Error

java.lang.Object
  extended by org.codehaus.mojo.exception.Error
All Implemented Interfaces:
Serializable

public class Error
extends Object
implements Serializable

A key for a particular CodedException. This key is used to look up the actual error message text.

Version:
$Id: Error.java 6588 2008-03-28 12:22:57Z bentmann $
Author:
Kris Bravo
See Also:
Serialized Form

Constructor Summary
Error(String key)
          Creates a new error code with a lookup value of key.
 
Method Summary
 String getErrorKey()
          Returns the error code key.
 String toString()
          Displays the Error object as a string, namely it's errorKey value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Error

public Error(String key)
Creates a new error code with a lookup value of key.

Parameters:
key - The error code key.
Method Detail

getErrorKey

public final String getErrorKey()
Returns the error code key.

Returns:
The error key.

toString

public final String toString()
Displays the Error object as a string, namely it's errorKey value.

Overrides:
toString in class Object
Returns:
The error key.


Copyright © 2005-2011 Codehaus. All Rights Reserved.