- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.util.concurrent.TimeoutException
-
- com.aoapps.lang.concurrent.LocalizedTimeoutException
-
- All Implemented Interfaces:
LocalizedException
,Serializable
public class LocalizedTimeoutException extends TimeoutException implements LocalizedException
ExtendsTimeoutException
to provide exceptions in user locale error messages.- Author:
- AO Industries, Inc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalizedTimeoutException(Resources resources, String key)
LocalizedTimeoutException(Resources resources, String key, Serializable... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializable[]
getArgs()
String
getKey()
String
getLocalizedMessage()
Resources
getResources()
Gets the resources used to generate the message ornull
when the message is not localized and uses a default.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
resources
protected final Resources resources
-
key
protected final String key
-
args
protected final Serializable[] args
-
-
Constructor Detail
-
LocalizedTimeoutException
public LocalizedTimeoutException(Resources resources, String key, Serializable... args)
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Specified by:
getLocalizedMessage
in interfaceLocalizedException
- Overrides:
getLocalizedMessage
in classThrowable
-
getResources
public final Resources getResources()
Description copied from interface:LocalizedException
Gets the resources used to generate the message ornull
when the message is not localized and uses a default.- Specified by:
getResources
in interfaceLocalizedException
-
getKey
public final String getKey()
- Specified by:
getKey
in interfaceLocalizedException
-
getArgs
public final Serializable[] getArgs()
- Specified by:
getArgs
in interfaceLocalizedException
- Returns:
- No defensive copy
-
-