Class BlueMindRuleRefusal
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.exoplatform.bluemind.mail.service.BlueMindRuleRefusal
- All Implemented Interfaces:
Serializable
Carries a checked refusal out of a session's job, which can only throw
unchecked exceptions, to the verb that declares it; never seen by the host.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BlueMindRuleRefusal
Wraps a refusal.- Parameters:
refusal- the checked exception the verb declares
-
-
Method Details
-
rethrow
public <A extends Exception,B extends Exception, IllegalStateException rethrowC extends Exception> (Class<A> a, Class<B> b, Class<C> c) throws A, B, C Throws the refusal as the first of the given types it is an instance of.- Type Parameters:
A- a type the verb declaresB- anotherC- another- Parameters:
a- a type the verb declaresb- another, or the samec- another, or the same- Returns:
- an
IllegalStateExceptionfor a refusal of none of the types, for the caller to throw - Throws:
A- when the refusal is an AB- when the refusal is a BC- when the refusal is a C
-