Package xal.tools

Class ExceptionWrapper

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XmlDataAdaptor.CreationException, XmlDataAdaptor.ParseException, XmlDataAdaptor.ResourceNotFoundException, XmlDataAdaptor.WriteException

public class ExceptionWrapper extends RuntimeException
Convenience class to wrap an exception with a runtime exception so exception handling isn't so irritating. This method was implemented before Java supported exception causes. It has been updated to use the new support and this class remains for backward compatibility.
Author:
tap
See Also:
  • Constructor Details

    • ExceptionWrapper

      public ExceptionWrapper(Exception cause)
      Creates new ExceptionWrapper
  • Method Details

    • rootException

      public Exception rootException()
      Get the root cause
      Returns:
      the root cause