Package nu.xom
Class IllegalDataException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- nu.xom.XMLException
-
- nu.xom.WellformednessException
-
- nu.xom.IllegalDataException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
IllegalCharacterDataException
,IllegalNameException
,MalformedURIException
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.
- Version:
- 1.1b3
- Author:
- Elliotte Rusty Harold
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalDataException(java.lang.String message)
Creates a newIllegalDataException
with a detail message.IllegalDataException(java.lang.String message, java.lang.Throwable cause)
Creates a newIllegalDataException
with a detail message and an underlying root cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getData()
Returns a string containing the actual illegal text that caused this exception.void
setData(java.lang.String data)
Stores the illegal text that caused this exception.-
Methods inherited from class nu.xom.XMLException
getCause, initCause
-
-
-
-
Constructor Detail
-
IllegalDataException
public IllegalDataException(java.lang.String message)
Creates a new
IllegalDataException
with a detail message.- Parameters:
message
- a string indicating the specific problem
-
IllegalDataException
public IllegalDataException(java.lang.String message, java.lang.Throwable cause)
Creates a new
IllegalDataException
with a detail message and an underlying root cause.- Parameters:
message
- a string indicating the specific problemcause
- the original cause of this exception
-
-
Method Detail
-
setData
public void setData(java.lang.String data)
Stores the illegal text that caused this exception.
- Parameters:
data
- the illegal data that caused this exception
-
getData
public java.lang.String getData()
Returns a string containing the actual illegal text that caused this exception.
- Returns:
- the syntactically incorrect data that caused this exception
-
-