causedByRejection

public static boolean causedByRejection(Throwable throwable)

Tells whether or not the given throwable is caused by a ThrowableMessage.

Return

true is the given throwable is caused by a rejection, false otherwise

Parameters

throwable

the Throwable to check