in reply to Error handling in a module
As the module connects with Stripe, it is only ever going to be used in a CGI environment.
Well, not that many perl devs are using CGI anymore. Is the module not appropriate for Catalyst, Dancer, or Mojo environments?
In general, I'm in the "code that fails should die and devs should try{}catch{}" camp, with the exception that external inputs to a program should be validated in a way that doesn't involve try/catch so that remote people don't have the ability to trigger __DIE__ handlers on demand.
But also, continuing my recent Public Service Announcement about the insecurity of HTTP::Tiny, you should add verify_TLS to the HTTP::Tiny constructor before connecting to stripe API.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Error handling in a module
by Bod (Parson) on Feb 27, 2023 at 00:31 UTC |