|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
de.knipp.rritoolkit.ResponseParseException
public class ResponseParseException
exception that is thrown if the parsing of the key-value pair or XML response fails for some reason
Field Summary | |
---|---|
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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String section
private java.lang.String key
private java.lang.String value
private org.w3c.dom.Node node
Constructor Detail |
---|
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 causeMethod Detail |
---|
private 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 to
org.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 available
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |