org.codehaus.mojo.exception
Class Error

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

Returns:
The error key.


Copyright © {inceptionYear}-2007 null. All Rights Reserved.