org.apache.commons.i18n
Class LocalizedError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.apache.commons.i18n.LocalizedError
All Implemented Interfaces:
java.io.Serializable

public class LocalizedError
extends java.lang.Error

The LocalizedError class is the base class for all errors that provide locaized error informations. This class should be subclassed in order to provide specific errors capable of localization support.

See Also:
Serialized Form

Constructor Summary
LocalizedError(ErrorBundle errorMessage)
           
LocalizedError(ErrorBundle errorMessage, java.lang.Throwable throwable)
           
 
Method Summary
 ErrorBundle getErrorMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedError

public LocalizedError(ErrorBundle errorMessage,
                      java.lang.Throwable throwable)
Parameters:
errorMessage - The error message contains a detailed localized description of this error
throwable - The Throwable that caused this error

LocalizedError

public LocalizedError(ErrorBundle errorMessage)
Parameters:
errorMessage - The error message contains a detailed localized description of this error
Method Detail

getErrorMessage

public ErrorBundle getErrorMessage()
Returns:
the detailed error message that describes this error


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.