Get error number
$pdfdoc
Gets the number of the last thrown exception or the reason for a failed function call.