protected static class AbstractDocument.DocumentError extends java.lang.Object implements DOMError
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractDocument.DocumentError.ErrorLocation
The DOMLocator implementation.
|
| Modifier and Type | Field and Description |
|---|---|
protected DOMLocator |
domLocator
The DOMLocator for this error.
|
protected java.lang.String |
message
The error message.
|
protected java.lang.Object |
relatedException
The exception which cuased this error.
|
protected Node |
relatedNode
The error related data.
|
protected short |
severity
The error severity.
|
protected java.lang.String |
type
The error type.
|
SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING| Constructor and Description |
|---|
DocumentError(java.lang.String type,
short severity,
java.lang.String message,
Node relatedNode,
java.lang.Exception relatedException)
Creates a new DocumentError object.
|
| Modifier and Type | Method and Description |
|---|---|
DOMLocator |
getLocation() |
java.lang.String |
getMessage() |
java.lang.Object |
getRelatedData() |
java.lang.Object |
getRelatedException() |
short |
getSeverity() |
java.lang.String |
getType() |
protected java.lang.String type
protected short severity
protected java.lang.String message
protected Node relatedNode
protected java.lang.Object relatedException
protected DOMLocator domLocator
public DocumentError(java.lang.String type,
short severity,
java.lang.String message,
Node relatedNode,
java.lang.Exception relatedException)
public short getSeverity()
getSeverity in interface DOMErrorpublic java.lang.String getMessage()
getMessage in interface DOMErrorpublic java.lang.Object getRelatedData()
getRelatedData in interface DOMErrorpublic java.lang.Object getRelatedException()
getRelatedException in interface DOMErrorpublic DOMLocator getLocation()
getLocation in interface DOMErrorCopyright © 2022 Apache Software Foundation. All Rights Reserved.