SD error codes

I would like to retrieve file-related error codes using the SdFat library. I’ve been unable to find a reference to the proper manner to use errorCode() or a similar function. I’m looking to determine, as an example, the error code associated with an attempt to open an SD file. Can someone point me to the proper function to gain access to the proper codes ? I have no interest in sd.errorHalt().