de.smartics.exceptions.i18n
Interface I18nCodeMessageFormatter

Package class diagram package I18nCodeMessageFormatter
All Superinterfaces:
CodeMessageFormatter, Serializable
All Known Implementing Classes:
DefaultI18nCodeMessageFormatter

public interface I18nCodeMessageFormatter
     
     
extends CodeMessageFormatter

Formatter for instances of MessageBean.


Method Summary
 String format(LocalizedException exception)
          Formats the given exception.
 String format(LocalizedException exception, MessageBean message)
          Formats the given message.
 String format(MessageBean message)
          Formats the given message.
 
Methods inherited from interface de.smartics.exceptions.core.CodeMessageFormatter
format, format
 

Method Detail

format

String format(LocalizedException exception)
Formats the given exception.

Implementations must not use the toString method of the given exception since the instance delegates its toString method call to this instance.

Parameters:
exception - the exception to transform to its string representation.
Returns:
the string representation of the exception.

format

String format(LocalizedException exception,
              MessageBean message)
Formats the given message.

Implementations must not use the toString method of the given message since the instance delegates its toString method call to this instance.

Parameters:
exception - the exception to transform to its string representation.
message - the message to transform to be added to the string representation.
Returns:
the string representation of the exception.

format

String format(MessageBean message)
Formats the given message.

Implementations must not use the toString method of the given message since the instance delegates its toString method call to this instance.

Parameters:
message - the message to transform to its string representation.
Returns:
the string representation of the exception.


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