Class ProviderExceptionSupport


  • public class ProviderExceptionSupport
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ProviderException createNonFatalOrPassthrough​(java.lang.Throwable cause)
      Checks the given cause to determine if it's already an ProviderException type and if not creates a new ProviderException to wrap it.
      static ProviderIOException createOrPassthroughFatal​(java.lang.Throwable cause)
      Checks the given cause to determine if it's already an ProviderIOException type and if not creates a new ProviderIOException to wrap it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProviderExceptionSupport

        public ProviderExceptionSupport()
    • Method Detail

      • createOrPassthroughFatal

        public static ProviderIOException createOrPassthroughFatal​(java.lang.Throwable cause)
        Checks the given cause to determine if it's already an ProviderIOException type and if not creates a new ProviderIOException to wrap it.
        Parameters:
        cause - The initiating exception that should be cast or wrapped.
        Returns:
        an ProviderIOException instance.
      • createNonFatalOrPassthrough

        public static ProviderException createNonFatalOrPassthrough​(java.lang.Throwable cause)
        Checks the given cause to determine if it's already an ProviderException type and if not creates a new ProviderException to wrap it. If the inbound exception is a fatal type then it will pass through this method untouched to preserve the fatal status of the error.
        Parameters:
        cause - The initiating exception that should be cast or wrapped.
        Returns:
        an ProviderException instance.