User code should be able to return error