de.smartics.exceptions.i18n
Interface LocalizedException

Package class diagram package LocalizedException
All Superinterfaces:
CoreException
All Known Implementing Classes:
AbstractLocalizedException, AbstractLocalizedRuntimeException, ConfigurationException, MethodAccessConfigurationException, ParseException, PropertyAccessConfigurationException

public interface LocalizedException
     
     
extends CoreException

Provides access to the localized exception implementations through a common interface.

Author:
Robert Reiner

Method Summary
 String getMessage(Locale locale, MessageType messageType)
          Returns the message for the given message type.
 String getMessage(MessageType messageType)
          Returns the message for the given message type and the system's default locale.
 String getMessages()
          Returns the messages in one string.
 String getMessages(Locale locale)
          Returns the messages in one string.
 
Methods inherited from interface de.smartics.exceptions.CoreException
getCause, getCode, getId, getLocalizedMessage, getMessage, getStackTrace, getTime, setStackTrace, truncateCause
 

Method Detail

getMessage

String getMessage(MessageType messageType)
Returns the message for the given message type and the system's default locale.

Parameters:
messageType - the type if message to return.
Returns:
the message for the given message type.

getMessage

String getMessage(Locale locale,
                  MessageType messageType)
Returns the message for the given message type.

Parameters:
locale - the locale to select the localized message.
messageType - the type if message to return.
Returns:
the message for the given message type.

getMessages

String getMessages(Locale locale)
Returns the messages in one string. Useful to make a dump of all text information for all message types for debugging.

Parameters:
locale - the locale to use for the dump.
Returns:
a dump of all types of messages.

getMessages

String getMessages()
Returns the messages in one string. Useful to make a dump of all text information for all message types for debugging.

Uses the default locale to access the messages.

Returns:
a dump of all types of messages.


Copyright © 2007-null Kronseder & Reiner GmbH - smartics. All Rights Reserved.