On-fail

This function is called if an error occurs in the data access function.

The function is named after the method to which it belongs, prefixed with onFail, e.g. onFailread.

Note: For non-void operations the return class is included in the arguments to this method and will always be null.