public class ResponseParseException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
the key, if available
|
private org.w3c.dom.Node |
node
the node, if available
|
private java.lang.String |
section
the section, if available
|
private java.lang.String |
value
the value, if available
|
Constructor and Description |
---|
ResponseParseException(java.lang.String message)
constructor
|
ResponseParseException(java.lang.String message,
org.w3c.dom.Node theNode)
constructor for an exception related to XML parsing
|
ResponseParseException(java.lang.String message,
org.w3c.dom.Node theNode,
java.lang.Throwable cause)
constructor for an exception related to XML parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theValue)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theKey,
java.lang.String theValue)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theSection,
java.lang.String theKey,
java.lang.String theValue)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theSection,
java.lang.String theKey,
java.lang.String theValue,
java.lang.Throwable cause)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theKey,
java.lang.String theValue,
java.lang.Throwable cause)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.String theValue,
java.lang.Throwable cause)
constructor for an exception related to key-value pair parsing
|
ResponseParseException(java.lang.String message,
java.lang.Throwable cause)
constructor
|
Modifier and Type | Method and Description |
---|---|
private static void |
buildPath(org.w3c.dom.Node node,
java.lang.StringBuilder sb)
try to construct a XPath like path that describes the location of
the given node.
|
java.lang.String |
getKey()
return the key
|
java.lang.String |
getMessage()
return a description of the exception
|
org.w3c.dom.Node |
getNode()
return the XML node
|
java.lang.String |
getSection()
return the section
|
java.lang.String |
getValue()
return the value
|
private java.lang.String section
private java.lang.String key
private java.lang.String value
private org.w3c.dom.Node node
public ResponseParseException(java.lang.String message)
message
- the messagepublic ResponseParseException(java.lang.String message, java.lang.Throwable cause)
message
- the messagecause
- the causepublic ResponseParseException(java.lang.String message, java.lang.String theSection, java.lang.String theKey, java.lang.String theValue, java.lang.Throwable cause)
message
- the messagetheSection
- the section, may be null
theKey
- the key, may be null
theValue
- the value, may be null
cause
- the cause, may be null
public ResponseParseException(java.lang.String message, java.lang.String theKey, java.lang.String theValue, java.lang.Throwable cause)
message
- the messagetheKey
- the key, may be null
theValue
- the value, may be null
cause
- the cause, may be null
public ResponseParseException(java.lang.String message, java.lang.String theValue, java.lang.Throwable cause)
message
- the messagetheValue
- the value, may be null
cause
- the cause, may be null
public ResponseParseException(java.lang.String message, java.lang.String theSection, java.lang.String theKey, java.lang.String theValue)
message
- the messagetheSection
- the section, may be null
theKey
- the key, may be null
theValue
- the value, may be null
public ResponseParseException(java.lang.String message, java.lang.String theKey, java.lang.String theValue)
message
- the messagetheKey
- the key, may be null
theValue
- the value, may be null
public ResponseParseException(java.lang.String message, java.lang.String theValue)
message
- the messagetheValue
- the value, may be null
public ResponseParseException(java.lang.String message, org.w3c.dom.Node theNode)
message
- the messagetheNode
- the causing node, may be null
public ResponseParseException(java.lang.String message, org.w3c.dom.Node theNode, java.lang.Throwable cause)
message
- the messagetheNode
- the causing node, may be null
cause
- the causeprivate static void buildPath(org.w3c.dom.Node node, java.lang.StringBuilder sb) throws org.w3c.dom.DOMException
node
- the nodesb
- the string builder to add toorg.w3c.dom.DOMException
- on exceptions accessing the DOMpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSection()
null
if not availablepublic java.lang.String getKey()
null
if not availablepublic java.lang.String getValue()
null
if not availablepublic org.w3c.dom.Node getNode()
null
if not availableCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH