One exception that causes another exception is known as Exception Chain or Chained Exception. In most cases we need to chain the exception such that relates one exception with another exception, it will make the logs clear and easy to track. It will be helpful for the programmer in the debug...
Each JCasC property is documented at http://jenkinshost/configuration-as-code/reference (replace jenkinshost with the hostname of your own Jenkins instance), whereas writing a Groovy script requires knowledge of the Jenkins API. JCasC configuration is vanilla YAML, which is much more approachable ...