Package: groovy.yaml

## [Java] Class YamlRuntimeException

- groovy.yaml.YamlRuntimeException

-     public class YamlRuntimeException
      extends GroovyRuntimeException

  Represents a runtime exception raised while parsing or building YAML.

  Since:
    3.0.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `YamlRuntimeException(String msg)` Creates an exception with a detail message.
    `YamlRuntimeException(Throwable cause)` Creates an exception that wraps the underlying cause.
    `YamlRuntimeException(String msg, Throwable cause)` Creates an exception with both a detail message and an underlying cause.

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public YamlRuntimeException(String msg)

      Creates an exception with a detail message.

      Parameters:
        `msg` - the description of the failure

    - #### public YamlRuntimeException(Throwable cause)

      Creates an exception that wraps the underlying cause.

      Parameters:
        `cause` - the original failure

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

      Creates an exception with both a detail message and an underlying cause.

      Parameters:
        `msg` - the description of the failure
        `cause` - the original failure