nu.xom
public class IllegalDataException extends WellformednessException
Indicates an attempt to set some value to malformed content; for instance by adding a string containing a null or a vertical tab to a text node, or using white space in an element name.
Constructor and Description |
---|
IllegalDataException(String message)
Creates a new
IllegalDataException
with a detail message. |
IllegalDataException(String message,
Throwable cause)
Creates a new
IllegalDataException
with a detail message and an underlying root cause. |
Modifier and Type | Method and Description |
---|---|
String |
getData()
Returns a string containing the actual illegal text that
caused this exception.
|
void |
setData(String data)
Stores the illegal text that caused this exception.
|
getCause, initCause
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalDataException(String message)
Creates a new IllegalDataException
with a detail message.
message
- a string indicating the specific problempublic void setData(String data)
Stores the illegal text that caused this exception.
data
- the illegal data that caused this exceptionpublic String getData()
Returns a string containing the actual illegal text that caused this exception.
Copyright 2002-2010 <a href='http://www.elharo.com/'>Elliotte Rusty Harold</a><br /> <a href='mailto:elharo%40ibiblio%2Eorg?Subject=XOM'>elharo@ibiblio.org</a>