|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emfforms.spi.common.report.AbstractReport
public class AbstractReport
Common base type for reports that may be reported.
Constructor Summary | |
---|---|
AbstractReport()
Default constructor. |
|
AbstractReport(String message)
Constructor. |
|
AbstractReport(String message,
int severity)
Constructor. |
|
AbstractReport(Throwable exception)
Constructor. |
|
AbstractReport(Throwable exception,
int severity)
Constructor. |
|
AbstractReport(Throwable exception,
String message)
Constructor. |
Method Summary | |
---|---|
Throwable |
getException()
Returns the exception this report is based on, if any. |
String |
getMessage()
Returns the report message. |
int |
getSeverity()
Returns the status of this report. |
boolean |
hasException()
Whether this report is based upon an exception. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractReport()
Default constructor.
Sets the severity toIStatus.ERROR
.
public AbstractReport(Throwable exception)
Constructor.
Sets the severity toIStatus.ERROR
.
exception
- the exception this report is based onpublic AbstractReport(String message)
Constructor.
Sets the severity toIStatus.ERROR
.
message
- the report messagepublic AbstractReport(String message, int severity)
Constructor.
Sets the severity toIStatus.ERROR
.
message
- the report messageseverity
- the severity of the reportpublic AbstractReport(Throwable exception, String message)
Constructor.
Sets the severity toIStatus.ERROR
.
exception
- the exception this report is based onmessage
- the report messagepublic AbstractReport(Throwable exception, int severity)
exception
- the exception this report is based onseverity
- the severity of the reportMethod Detail |
---|
public String getMessage()
public boolean hasException()
true
, if this report is based upon an exception, false
otherwisepublic Throwable getException()
null
hasException()
public int getSeverity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |