libcarp-object-perl

object-oriented replacement for Carp or Carp::Clan Perl modules

Description

Carp::Object is an object-oriented alternative to Carp/croak or Carp::Clan/croak, for reporting errors in modules from the perspective of the caller instead of reporting the internal implementation line where the error occurs.

Carp or Carp::Clan were designed long ago, at a time when Perl had no support yet for object-oriented programming; therefore they only have a functional API that is not very well suited for extensions. The present module attempts to mimic the same behaviour, but with an object-oriented implementation that offers more tuning options, and also supports errors raised as Exception objects.

Unlike Carp or Carp::Clan, where the presentation of stack frames is hard-coded, here it is delegated to Devel::StackTrace. This means that clients can also take advantage of options in Devel::StackTrace to tune the output -- or even replace it by another class.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Carp-Object


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libcarp-object-perl