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 DOMError
public java.lang.String getMessage()
getMessage
in interface DOMError
public java.lang.Object getRelatedData()
getRelatedData
in interface DOMError
public java.lang.Object getRelatedException()
getRelatedException
in interface DOMError
public DOMLocator getLocation()
getLocation
in interface DOMError
Copyright © 2022 Apache Software Foundation. All Rights Reserved.