Get name of unsuccessfull API function
$pdfdoc
Gets the name of the API function which threw the last exception or failed.