Checks if the input data can be handled by this class. Throws an error if it can't handle the data.
Input data that could potentially be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Input data that will be handled if it can be handled.
A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.
A composite handler that will try to run all supporting handlers sequentially and return the value of the last supported handler. The
canHandle
check of this handler will always succeed.