de.smartics.exceptions.core
Interface CodeMessageFormatter

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

public interface CodeMessageFormatter
     
     
extends Serializable

Formatter for instances of CoreException.


Method Summary
 String format(CoreException exception)
          Formats the given core exception.
 String format(CoreException exception, Object message)
          Formats the given core exception.
 

Method Detail

format

String format(CoreException exception)
Formats the given core 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(CoreException exception,
              Object message)
Formats the given core 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.
message - to message to include into the representation.
Returns:
the string representation of the exception.


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