public class Problem
extends java.lang.Object
Constructor and Description |
---|
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).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Gets the message of the problem.
|
java.lang.Throwable |
getThrowable()
Gets the exception/error that caused the problem.
|
public Problem(java.lang.String message)
message
- User-readable description of the problem.public Problem(java.lang.Throwable t)
t
- The exception/error causing the problem.public Problem(java.lang.String message, java.lang.Throwable t)
message
- Description of the context in which the problem occurred.t
- The exception/error causing the problem.public java.lang.String getMessage()
null
if none is specified.public java.lang.Throwable getThrowable()
null
if none is specified.