public class DesignFileException extends ModelException
ErrorDetail.
Four types of error are defined:
INVALID_XML SYNTAX_ERROR SEMANTIC_ERROR ErrorDetail,
序列化表格| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_XML
Other exceptions thrown by SAX.
|
static java.lang.String |
DESIGN_EXCEPTION_SEMANTIC_ERROR
The semantic error, when element doesn't conform semantic check.
|
static java.lang.String |
DESIGN_EXCEPTION_SEMANTIC_WARNING
The semantic warning, when element doesn't conform semantic check.
|
static java.lang.String |
DESIGN_EXCEPTION_SYNTAX_ERROR
The syntax error, when design file doesn't conform metadata definition.
|
protected java.lang.Exception |
e
Exception thrown by SAX.
|
protected java.lang.String |
fileName
The file name with the error.
|
PLUGIN_ID| 构造器和说明 |
|---|
DesignFileException(java.lang.String fileName,
java.lang.Exception e)
Constructs a
DesignFileException with the given design
filename and the specified cause. |
DesignFileException(java.lang.String fileName,
java.util.List<? extends java.lang.Exception> errList)
Constructs a
DesignFileException with the given design
filename and a list of errors. |
DesignFileException(java.lang.String fileName,
java.util.List<? extends java.lang.Exception> errList,
java.lang.Exception ex)
Constructs a
DesignFileException with the given design
filename, a list of errors and the new exception to add. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<ErrorDetail> |
getErrorList()
Returns the error list.
|
java.util.List<java.lang.Exception> |
getExceptionList()
Returns the exception list.
|
java.lang.String |
getFileName()
Returns the design file name.
|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getMessage() |
java.lang.String |
toString()
Returns a string representation of the exception.
|
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverityprotected java.lang.String fileName
protected java.lang.Exception e
public static final java.lang.String DESIGN_EXCEPTION_SYNTAX_ERROR
public static final java.lang.String DESIGN_EXCEPTION_SEMANTIC_ERROR
public static final java.lang.String DESIGN_EXCEPTION_SEMANTIC_WARNING
public static final java.lang.String DESIGN_EXCEPTION_INVALID_XML
public DesignFileException(java.lang.String fileName,
java.lang.Exception e)
DesignFileException with the given design
filename and the specified cause. It is for the exception thrown by SAX.fileName - design file name.e - exception to wrap.public DesignFileException(java.lang.String fileName,
java.util.List<? extends java.lang.Exception> errList)
DesignFileException with the given design
filename and a list of errors. Used when syntax error is found when
parsing.fileName - design file name.errList - exception list, each of them is the syntax error.public DesignFileException(java.lang.String fileName,
java.util.List<? extends java.lang.Exception> errList,
java.lang.Exception ex)
DesignFileException with the given design
filename, a list of errors and the new exception to add. Used when syntax
error is found when parsing.fileName - design file name.errList - exception list, each of which is the syntax error.ex - the exception to addpublic java.util.List<ErrorDetail> getErrorList()
ErrorDetail.public java.util.List<java.lang.Exception> getExceptionList()
Exception.public java.lang.String getFileName()
public java.lang.String getLocalizedMessage()
getLocalizedMessage 在类中 org.eclipse.birt.core.exception.BirtExceptionpublic java.lang.String getMessage()
getMessage 在类中 org.eclipse.birt.core.exception.BirtExceptionpublic java.lang.String toString()
errorList and assemble them into a string. The return string
is assembled in the ways:
| Error Type | Message |
|---|---|
| SYNTAX_ERROR and INVALID_XML | [errorType]-
[numOfErrors] errors found. 1.) [detail messages.] 2.) [detail messages.] ... |
| SEMANTIC_ERROR | Impossible to occur. |
toString 在类中 java.lang.ThrowableObject.toString(),
ErrorDetail.toString(),
getLocalizedMessage()Copyright © 2008 Actuate Corp. All rights reserved.