public class NoSuchChildException extends XMLException
Indicates that a child with a certain name and/or namespace does not exist. This is thrown when you attempt to remove a node from a parent that does not actually have that node as a child.
ParentNode.removeChild(Node)
,
Serialized FormConstructor and Description |
---|
NoSuchChildException(String message)
Creates a new
NoSuchChildException
with a detail message. |
NoSuchChildException(String message,
Throwable cause)
Creates a new
NoSuchChildException
with the specified detail message
and an underlying root cause. |
getCause, initCause
public NoSuchChildException(String message)
Creates a new NoSuchChildException
with a detail message.
message
- explains the reason for the exceptionpublic NoSuchChildException(String message, Throwable cause)
Creates a new NoSuchChildException
with the specified detail message
and an underlying root cause.
message
- explains the reason for the exceptioncause
- the nested exception that caused this exceptionCopyright 2002-2023 Elliotte Rusty Harold
elharo@ibiblio.org