Class ProviderExceptionSupport
java.lang.Object
org.apache.qpid.jms.provider.exceptions.ProviderExceptionSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProviderExceptionChecks the given cause to determine if it's already an ProviderException type and if not creates a new ProviderException to wrap it.static ProviderIOExceptionChecks the given cause to determine if it's already an ProviderIOException type and if not creates a new ProviderIOException to wrap it.
-
Constructor Details
-
ProviderExceptionSupport
public ProviderExceptionSupport()
-
-
Method Details
-
createOrPassthroughFatal
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
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.
-