de.smartics.exceptions.i18n
Interface LocalizedException

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

public interface LocalizedException
     
     
extends CoreException

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


Method Summary
 Messages createMessages()
          Returns a created messages instance.
 Messages createMessages(Locale locale)
          Returns a created messages instance.
 CauseTrailMessages getCauseTrail()
          Returns the cause trail of messages.
 CauseTrailMessages getCauseTrail(Locale locale)
          Returns the cause trail of messages.
 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.

createMessages

Messages createMessages(Locale locale)
Returns a created messages instance.

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

createMessages

Messages createMessages()
Returns a created messages instance.

Uses the default locale to access the messages.

Returns:
messages of all types.

getCauseTrail

CauseTrailMessages getCauseTrail()
Returns the cause trail of messages. These are all messages of the cause to the root cause.

Returns:
the cause trail of messages.

getCauseTrail

CauseTrailMessages getCauseTrail(Locale locale)
Returns the cause trail of messages. These are all messages of the cause to the root cause.

Parameters:
locale - the locale to use for the dump.
Returns:
the cause trail of messages.


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