We should expose this in case the code wants to do its own error handling.