|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.inet.report.ReportException
public class ReportException
This is the base class of the i-net Clear Reports exception hierarchy. This exception is thrown whenever an unrecoverable error occurs within i-net Clear Reports.
| Field Summary | |
|---|---|
int |
messageId
Deprecated. As of i-net Crystal-Clear version 10.0, replaced by getErrorCode() |
java.lang.String |
msg
Deprecated. As of i-net Crystal-Clear version 10.0, replaced by Throwable.getMessage() |
| Constructor Summary | |
|---|---|
ReportException(java.lang.String msg,
int messageId)
Creates a new report exception. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Returns an error code that describes the cause for this exception. |
ReportException |
setCause(java.lang.Throwable cause)
Sets the cause for this exception. |
java.lang.String |
toString()
Returns a string which contains the message id and the message |
| Field Detail |
|---|
@Deprecated public int messageId
getErrorCode()
@Deprecated public java.lang.String msg
Throwable.getMessage()
| Constructor Detail |
|---|
public ReportException(java.lang.String msg,
int messageId)
if(prop.getProperty("user", "").equals("peter")) {
throw new ReportException("Access denied", 105);
}
msg - The formatted messagemessageId - An integer you can associate with your message and which will be shown by the client. The java client uses the convention that a id<0 is interpreted as a warning and id>0 as a error message.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Throwablepublic ReportException setCause(java.lang.Throwable cause)
cause - The cause is the throwable that caused this ReportException to get thrown.
public int getErrorCode()
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||