logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Error - Catmandu error hierarchy

Currrent Error Hierarchy Throwable::Error Catmandu::Error Catmandu::Badval Catmandu::Badarg Catmandu::Badfixarg

Catmandu::NotImplementedCatmandu::NoSuchPackageCatmandu::NoSuchFixPackageCatmandu::FixParseErrorCatmandu::FixErrorCatmandu::HTTPError

Name

       Catmandu::Error - Catmandu error hierarchy

See Also

       Throwable

perl v5.40.0                                       2025-01-17                               Catmandu::Error(3pm)

Synopsis

           use Catmandu::Sane;

           sub be_naughty {
               Catmandu::BadArg->throw("very naughty") if shift;
           }

           try {
               be_naughty(1);
           } catch_case [
               'Catmandu::BadArg' => sub {
                   say "sorry";
               }
           ];

See Also