Class ProviderExceptionSupport


  • public class ProviderExceptionSupport
    extends Object
    • Constructor Detail

      • ProviderExceptionSupport

        public ProviderExceptionSupport()
    • Method Detail

      • createOrPassthroughFatal

        public static ProviderIOException createOrPassthroughFatal​(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​(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.