org.tigris.scarab.util
Class ScarabLocalizedTurbineSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.lang.exception.NestableException
org.apache.fulcrum.ServiceException
org.apache.fulcrum.security.util.TurbineSecurityException
org.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
| Fields inherited from class org.apache.commons.lang.exception.NestableException |
delegate |
| Fields inherited from class java.lang.Exception |
|
| 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 |
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.
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.