public class NoSuchAttributeException extends XMLException
Indicates that an attribute with a certain name and/or namespace does not exist. This is normally thrown after an attempt to remove such a non-existent attribute.
Element.removeAttribute(Attribute)
,
Serialized FormConstructor and Description |
---|
NoSuchAttributeException(String message)
Creates a new
NoSuchAttributeException
with a detail message. |
NoSuchAttributeException(String message,
Throwable cause)
Creates a new
NoSuchAttributeException
with the specified detail message
and an underlying root cause. |
getCause, initCause
public NoSuchAttributeException(String message)
Creates a new NoSuchAttributeException
with a detail message.
message
- explains the reason for the exceptionpublic NoSuchAttributeException(String message, Throwable cause)
Creates a new NoSuchAttributeException
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