allowedThrowable

protected Optional<Class<? extends Throwable>> allowedThrowable()

Obtains the type of a Throwable which a method can declare.

A handler method may declare more than one Throwable, but they must extend the same type required by this type of signature.

Default implementation returns empty Optional, which means that normally a handler method does not throw.