{"id":21206196,"url":"https://github.com/rtmigo/errno","last_synced_at":"2026-04-08T22:31:31.326Z","repository":{"id":61973193,"uuid":"350515323","full_name":"rtmigo/errno","owner":"rtmigo","description":"Defines system error code constants for the OSs running the Dart platform","archived":false,"fork":false,"pushed_at":"2021-03-24T01:24:54.000Z","size":322,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T23:12:00.524Z","etag":null,"topics":["android","dart","dart-library","darwin","errno","error-codes","error-success","errors","exceptions","flutter","header-files","headers","ios","kernel","linux","macos","os","posix","windows","winerror"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/errno","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rtmigo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-22T23:06:53.000Z","updated_at":"2021-08-15T06:55:14.000Z","dependencies_parsed_at":"2022-10-24T13:30:38.391Z","dependency_job_id":null,"html_url":"https://github.com/rtmigo/errno","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rtmigo/errno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ferrno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ferrno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ferrno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ferrno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtmigo","download_url":"https://codeload.github.com/rtmigo/errno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtmigo%2Ferrno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","dart","dart-library","darwin","errno","error-codes","error-success","errors","exceptions","flutter","header-files","headers","ios","kernel","linux","macos","os","posix","windows","winerror"],"created_at":"2024-11-20T20:54:46.422Z","updated_at":"2026-04-08T22:31:31.312Z","avatar_url":"https://github.com/rtmigo.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Pub Package](https://img.shields.io/pub/v/errno.svg)](https://pub.dev/packages/errno)\n[![Actions Status](https://github.com/rtmigo/errno/workflows/unittest/badge.svg?branch=master)](https://github.com/rtmigo/errno/actions)\n\n# [errno](https://github.com/rtmigo/errno)\n\nDefines **system error code** constants for the OSs running the Dart platform.\n\nWith these numeric codes, the \n[OSError.errorCode](https://api.dart.dev/stable/dart-io/OSError/errorCode.html) \nproperty usually specifies the problem that occurred.\n\n\n\n| OS             | Class           |\n|----------------|-----------------|\n| Android, Linux | `LinuxErrors`   |\n| iOS, macOS     | `DarwinErrors`  |\n| Windows        | `WindowsErrors` |\n\n## Example \n\n``` dart\nimport 'dart:io';\n\nimport 'package:errno/errno.dart';\n\nvoid main() {\n\n  try {\n\n    var lst = Directory(\"My Documents\").listSync();\n    print(lst);\n\n  } on FileSystemException catch (exc) {\n\n    if (exc.osError?.errorCode == WindowsErrors.pathNotFound) {\n      \n      print(\"The directory does not exist.\");\n\n    } else {\n      rethrow;\n    }\n  }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Ferrno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtmigo%2Ferrno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtmigo%2Ferrno/lists"}