{"id":18981448,"url":"https://github.com/awncorp/data-object-exception","last_synced_at":"2025-11-11T14:02:28.842Z","repository":{"id":77256385,"uuid":"300956892","full_name":"awncorp/data-object-exception","owner":"awncorp","description":"Exception Class for Perl 5","archived":false,"fork":false,"pushed_at":"2020-10-03T20:34:01.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T11:27:39.277Z","etag":null,"topics":["object-oriented","perl","perl5"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awncorp.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-03T19:04:47.000Z","updated_at":"2022-07-24T20:56:21.000Z","dependencies_parsed_at":"2023-02-27T09:31:30.598Z","dependency_job_id":null,"html_url":"https://github.com/awncorp/data-object-exception","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-exception","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-exception/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-exception/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdata-object-exception/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awncorp","download_url":"https://codeload.github.com/awncorp/data-object-exception/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985781,"owners_count":19729525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["object-oriented","perl","perl5"],"created_at":"2024-11-08T16:09:51.510Z","updated_at":"2025-11-11T14:02:23.801Z","avatar_url":"https://github.com/awncorp.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Data::Object::Exception\n\nABSTRACT\n\n    Exception Class for Perl 5\n\nSYNOPSIS\n\n      use Data::Object::Exception;\n    \n      my $exception = Data::Object::Exception-\u003enew;\n    \n      # $exception-\u003ethrow\n\nDESCRIPTION\n\n    This package provides functionality for creating, throwing, and\n    introspecting exception objects.\n\nSCENARIOS\n\n    This package supports the following scenarios:\n\n args-1\n\n      use Data::Object::Exception;\n    \n      my $exception = Data::Object::Exception-\u003enew('Oops!');\n    \n      # $exception-\u003ethrow\n\n    The package allows objects to be instantiated with a single argument.\n\n args-kv\n\n      use Data::Object::Exception;\n    \n      my $exception = Data::Object::Exception-\u003enew(message =\u003e 'Oops!');\n    \n      # $exception-\u003ethrow\n\n    The package allows objects to be instantiated with key-value arguments.\n\nATTRIBUTES\n\n    This package has the following attributes:\n\n context\n\n      context(Any)\n\n    This attribute is read-only, accepts (Any) values, and is optional.\n\n id\n\n      id(Str)\n\n    This attribute is read-only, accepts (Str) values, and is optional.\n\n message\n\n      message(Str)\n\n    This attribute is read-only, accepts (Str) values, and is optional.\n\nMETHODS\n\n    This package implements the following methods:\n\n explain\n\n      explain() : Str\n\n    The explain method returns an error message with stack trace.\n\n    explain example #1\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew('Oops!');\n      \n        $exception-\u003eexplain\n\n throw\n\n      throw(Tuple[Str, Str] | Str $message, Any $context, Maybe[Number] $offset) : Any\n\n    The throw method throws an error with message (and optionally, an ID).\n\n    throw example #1\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew;\n      \n        $exception-\u003ethrow('Oops!')\n\n    throw example #2\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew('Oops!');\n      \n        $exception-\u003ethrow\n\n    throw example #3\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew;\n      \n        $exception-\u003ethrow(['E001', 'Oops!'])\n\n trace\n\n      trace(Int $offset, $Int $limit) : Object\n\n    The trace method compiles a stack trace and returns the object. By\n    default it skips the first frame.\n\n    trace example #1\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew('Oops!');\n      \n        $exception-\u003etrace(0)\n\n    trace example #2\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew('Oops!');\n      \n        $exception-\u003etrace(1)\n\n    trace example #3\n\n        use Data::Object::Exception;\n      \n        my $exception = Data::Object::Exception-\u003enew('Oops!');\n      \n        $exception-\u003etrace(0,1)\n\nAUTHOR\n\n    Al Newkirk, awncorp@cpan.org\n\nLICENSE\n\n    Copyright (C) 2011-2019, Al Newkirk, et al.\n\n    This is free software; you can redistribute it and/or modify it under\n    the terms of the The Apache License, Version 2.0, as elucidated in the\n    \"license file\"\n    \u003chttps://github.com/iamalnewkirk/data-object-exception/blob/master/LICENSE\u003e.\n\nPROJECT\n\n    Wiki \u003chttps://github.com/iamalnewkirk/data-object-exception/wiki\u003e\n\n    Project \u003chttps://github.com/iamalnewkirk/data-object-exception\u003e\n\n    Initiatives\n    \u003chttps://github.com/iamalnewkirk/data-object-exception/projects\u003e\n\n    Milestones\n    \u003chttps://github.com/iamalnewkirk/data-object-exception/milestones\u003e\n\n    Contributing\n    \u003chttps://github.com/iamalnewkirk/data-object-exception/blob/master/CONTRIBUTE.md\u003e\n\n    Issues \u003chttps://github.com/iamalnewkirk/data-object-exception/issues\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdata-object-exception","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawncorp%2Fdata-object-exception","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdata-object-exception/lists"}