org.codehaus.mojo.exception
Class Error

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

public class Error
extends java.lang.Object
implements java.io.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(java.lang.String key)
          Creates a new error code with a lookup value of key.
 
Method Summary
 java.lang.String getErrorKey()
          Returns the error code key.
 java.lang.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(java.lang.String key)
Creates a new error code with a lookup value of key.

Parameters:
key - The error code key.
Method Detail

getErrorKey

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

Returns:
The error key.

toString

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

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


Copyright © 2005-2009. All Rights Reserved.