org.tigris.scarab.util
Class ScarabLocalizedTurbineSecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.lang.exception.NestableException
              extended byorg.apache.fulcrum.ServiceException
                  extended byorg.apache.fulcrum.security.util.TurbineSecurityException
                      extended byorg.tigris.scarab.util.ScarabLocalizedTurbineSecurityException
All Implemented Interfaces:
Localizable, org.apache.commons.lang.exception.Nestable, java.io.Serializable

public class ScarabLocalizedTurbineSecurityException
extends org.apache.fulcrum.security.util.TurbineSecurityException
implements Localizable

A TurbineSecurityException ready for internationalization [in the Scarab L10N framework].

Version:
$Id: ScarabLocalizedTurbineSecurityException.java 9088 2004-05-01 19:10:51Z dabbous $
Author:
Hussayn Dabbous
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.lang.exception.NestableException
delegate
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
ScarabLocalizedTurbineSecurityException(java.lang.Throwable t)
          Constructs a TurbineSecurityException wrapper for a given exception.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Return the localized message for that throwable, if a localizer was defined using setLocalizer(ScarabLocalizationTool)
 java.lang.String getMessage()
          Delegator for the wrapped exceptions getMessage() method.
 java.lang.String getMessage(ScarabLocalizationTool l10n)
          Localize this exception using the wrapped exception.
 void setLocalizer(ScarabLocalizationTool theLocalizer)
          Set the localizer to be used in later calls to getLocalizedMessage()
 
Methods inherited from class org.apache.commons.lang.exception.NestableException
getCause, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScarabLocalizedTurbineSecurityException

public ScarabLocalizedTurbineSecurityException(java.lang.Throwable t)
Constructs a TurbineSecurityException wrapper for a given exception. The wrapper is simply a container with no special functionality.

Method Detail

setLocalizer

public void setLocalizer(ScarabLocalizationTool theLocalizer)
Set the localizer to be used in later calls to getLocalizedMessage()

Parameters:
theLocalizer - the localizer (may be null)

getMessage

public java.lang.String getMessage()
Delegator for the wrapped exceptions getMessage() method.

Specified by:
getMessage in interface Localizable
Returns:
the wrapped exception's message

getMessage

public java.lang.String getMessage(ScarabLocalizationTool l10n)
Localize this exception using the wrapped exception. return the localized message, else return the message string of the wrapped exception.

Specified by:
getMessage in interface Localizable
Parameters:
l10n -
Returns:

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Return the localized message for that throwable, if a localizer was defined using setLocalizer(ScarabLocalizationTool)

Returns:
the localized message.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.