Class ProviderExceptionSupport
- java.lang.Object
-
- org.apache.qpid.jms.provider.exceptions.ProviderExceptionSupport
-
public class ProviderExceptionSupport extends Object
-
-
Constructor Summary
Constructors Constructor Description ProviderExceptionSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProviderExceptioncreateNonFatalOrPassthrough(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 ProviderIOExceptioncreateOrPassthroughFatal(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.
-
-
-
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.
-
-