www.sdmetrics.com

com.sdmetrics.app
Class Problem

java.lang.Object
  extended by com.sdmetrics.app.Problem

public class Problem
extends java.lang.Object

Stores the details of a problem encountered during metric calculation, rule checking, etc.


Constructor Summary
Problem(java.lang.String message)
          Creates a problem report with a message.
Problem(java.lang.String message, java.lang.Throwable t)
          Creates a problem report with an exception and further explanations.
Problem(java.lang.Throwable t)
          Creates a problem report with an exception (or error).
 
Method Summary
 java.lang.String getMessage()
          Gets the message of the problem.
 java.lang.Throwable getThrowable()
          Gets the exception/error that caused the problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Problem

public Problem(java.lang.String message)
Creates a problem report with a message.

Parameters:
message - User-readable description of the problem.

Problem

public Problem(java.lang.Throwable t)
Creates a problem report with an exception (or error).

Parameters:
t - The exception/error causing the problem.

Problem

public Problem(java.lang.String message,
               java.lang.Throwable t)
Creates a problem report with an exception and further explanations.

Parameters:
message - Description of the context in which the problem occurred.
t - The exception/error causing the problem.
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message of the problem.

Returns:
The message, or null if none is specified.

getThrowable

public java.lang.Throwable getThrowable()
Gets the exception/error that caused the problem.

Returns:
The exception/error, or null if none is specified.

www.sdmetrics.com