The containing class is available as OS\ErrnoException in the www repository.
OS\ErrnoException
final public function getErrno(): HH\Lib\OS\Errno;
HH\Lib\OS\Errno