If a flow element throws an error and there are no matching error transitions, then the error is handled by an error handler with matching errors. Error handlers are sorted in the order of error specificity, if it is supported. Otherwise they are matched with the error in the order they are defined in the model.