de.smartics.properties.report.data
Class ReportProblem

Package class diagram package ReportProblem
java.lang.Object
  extended by de.smartics.properties.report.data.ReportProblem
All Implemented Interfaces:
Serializable

public final class ReportProblem
     
     
extends Object
implements Serializable

Stores a problem found by the report builder.

See Also:
Serialized Form

Constructor Summary
ReportProblem(String message)
          Convenience constructor without a root cause.
ReportProblem(String message, Throwable cause)
          Default constructor.
ReportProblem(Throwable cause)
          Convenience constructor to use the message of the root cause.
 
Method Summary
 Throwable getCause()
          Returns the optional root cause to the problem.
 String getMessage()
          Returns the message to the problem.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReportProblem

public ReportProblem(Throwable cause)
Convenience constructor to use the message of the root cause.

Parameters:
cause - the optional root cause to the problem.

ReportProblem

public ReportProblem(String message)
Convenience constructor without a root cause.

Parameters:
message - the message to the problem.

ReportProblem

public ReportProblem(String message,
                     Throwable cause)
Default constructor.

Parameters:
message - the message to the problem.
cause - the optional root cause to the problem.
Method Detail

getMessage

public String getMessage()
Returns the message to the problem.

Returns:
the message to the problem.

getCause

public Throwable getCause()
Returns the optional root cause to the problem.

Returns:
the optional root cause to the problem.

toString

public String toString()
Returns the string representation of the object.

Overrides:
toString in class Object
Returns:
the string representation of the object.


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