Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.report.impl
Class MessageImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.common.core.report.impl.MessageImpl
All Implemented Interfaces:
Message
Direct Known Subclasses:
DefaultInstanceValidationMessage, IOMessageImpl, TransformationMessageImpl

@Immutable
public class MessageImpl
extends Object
implements Message

Default message implementation

Since:
2.2
Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
  MessageImpl(String message, Throwable throwable)
          Create a new message
protected MessageImpl(String message, Throwable throwable, String stackTrace)
          Create a new message
 
Method Summary
 String getFormattedMessage()
          Get the formatted message string with additional informations.
 String getMessage()
          Get the message string
 String getStackTrace()
          Get the associated stack trace if any
 Throwable getThrowable()
          Get the associated throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageImpl

public MessageImpl(String message,
                   Throwable throwable)
Create a new message

Parameters:
message - the message string
throwable - the associated throwable, may be null

MessageImpl

protected MessageImpl(String message,
                      Throwable throwable,
                      String stackTrace)
Create a new message

Parameters:
message - the message string
throwable - the associated throwable, may be null
stackTrace - the associated stack trace, or null
Method Detail

getMessage

public String getMessage()
Description copied from interface: Message
Get the message string

Specified by:
getMessage in interface Message
Returns:
the message string
See Also:
Message.getMessage()

getStackTrace

public String getStackTrace()
Description copied from interface: Message
Get the associated stack trace if any

Specified by:
getStackTrace in interface Message
Returns:
the associated stack trace or null
See Also:
Message.getStackTrace()

getThrowable

public Throwable getThrowable()
Description copied from interface: Message
Get the associated throwable. It may be not available even if there is a stack trace, so use Message.getStackTrace() instead if possible.

Specified by:
getThrowable in interface Message
Returns:
the associated throwable or null
See Also:
Message.getThrowable()

getFormattedMessage

public String getFormattedMessage()
Description copied from interface: Message
Get the formatted message string with additional informations.

Specified by:
getFormattedMessage in interface Message
Returns:
the formatted message
See Also:
Message.getFormattedMessage()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d