de.smartics.exceptions.i18n
Class CauseTrailMessages

Package class diagram package CauseTrailMessages
java.lang.Object
  extended by de.smartics.exceptions.i18n.CauseTrailMessages
All Implemented Interfaces:
Serializable

public final class CauseTrailMessages
     
     
extends Object
implements Serializable

Stores the message information of the causes. The exception whose cause trail this instance is, is not part of the cause trail. This makes it possible to render all messages without need to skip the first one that is usually rendered otherwise.

See Also:
Serialized Form

Constructor Summary
CauseTrailMessages(Locale locale, Throwable cause)
          Default constructor.
CauseTrailMessages(Throwable cause)
          Convenience constructor using the default locale.
 
Method Summary
 List<Messages> getTrail()
          Returns the trail of messages to the root.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CauseTrailMessages

public CauseTrailMessages(Throwable cause)
Convenience constructor using the default locale.

Parameters:
cause - the cause to the exception this is the cause trail instance for.

CauseTrailMessages

public CauseTrailMessages(Locale locale,
                          Throwable cause)
Default constructor.

Parameters:
locale - the locale for which the message is requested.
cause - the cause to the exception this is the cause trail instance for.
Method Detail

getTrail

public List<Messages> getTrail()
Returns the trail of messages to the root.

Returns:
the trail of messages to the root.

toString

public String toString()
Overrides:
toString in class Object


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