Package: groovy.xml

## [Java] Class XmlRuntimeException

- groovy.xml.XmlRuntimeException

-     @Incubating
      public class XmlRuntimeException
      extends GroovyRuntimeException

  Represents a runtime exception that occurred when parsing or building XML.

  Since:
    6.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `XmlRuntimeException(String msg)` Creates a new exception with a detail message.
    `XmlRuntimeException(Throwable cause)` Creates a new exception wrapping the supplied cause.
    `XmlRuntimeException(String msg, Throwable cause)` Creates a new exception with a detail message and cause.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GroovyRuntimeException` | `getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule`

- - ### Constructor Detail

    - #### public XmlRuntimeException(String msg)

      Creates a new exception with a detail message.

      Parameters:
        `msg` - the detail message

    - #### public XmlRuntimeException(Throwable cause)

      Creates a new exception wrapping the supplied cause.

      Parameters:
        `cause` - the underlying parsing or building failure

    - #### public XmlRuntimeException(String msg, Throwable cause)

      Creates a new exception with a detail message and cause.

      Parameters:
        `msg` - the detail message
        `cause` - the underlying parsing or building failure