view release on metacpan or search on metacpan
lib/Bundle/Theory.pm view on Meta::CPAN
Text::WordDiff
Time::HiRes
Try::Tiny
URI
URI::Escape
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/AT/SSN.pm view on Meta::CPAN
package Business::AT::SSN;
use Moose;
use DateTime;
use Try::Tiny;
our $VERSION = '0.92';
# ABSTRACT: verify Austrian Social Securtiy numbers
has 'ssn' => (isa => 'Str', is => 'rw');
view all matches for this distribution
view release on metacpan or search on metacpan
List::Util: '1.38'
Locale::Currency::Format: '0'
MAD::Loader: '3.001000'
Moo: '1.006000'
PDF::API2: '0'
Try::Tiny: '0.22'
resources:
bugtracker: https://github.com/blabos/Business-BR-Boleto/issues
repository: https://github.com/blabos/Business-BR-Boleto
version: '0.000002'
view all matches for this distribution
view release on metacpan or search on metacpan
t/08exception.t view on Meta::CPAN
use strict;
use utf8;
use Business::CPI::Base::Exception;
use Test::Exception;
use Test::More;
use Try::Tiny;
throws_ok {
Business::CPI::Base::Exception->throw(
type => 'unknown',
message => 'error code 123',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Cart/Generic/Controller/Order.pm view on Meta::CPAN
use strict;
use warnings;
use Business::Cart::Generic::Util::Validator;
use Try::Tiny;
# We don't use Moose because we isa CGI::Application.
our $VERSION = '0.85';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/CyberSource.pm view on Meta::CPAN
it or check for C<blessed> it is always possible that somewhere in the stack
someone is using C<die> on a string.
use 5.010;
use Carp;
use Try::Tiny;
use Safe::Isa;
use Data::Printer alias => 'Dumper';
use Business::CyberSource::Client;
use Business::CyberSource::Request::Authorization;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/DK/FI.pm view on Meta::CPAN
This method calculates a sum it takes a number and a reference to an array of control cifers. It calculates a single sum based on the number and the control cifer and returns this.
=head1 DIAGNOSTICS
All methods B<die> if their API is not respected. Method calls can with success be wrapped in L<Try::Tiny> or C<eval> blocks.
=head1 CONFIGURATION AND ENVIRONMENT
The module requires no special configuration or environment.
lib/Business/DK/FI.pm view on Meta::CPAN
=over
=item * http://www.pbs.dk/
=item * L<Try::Tiny>
=item * L<Business::DK::CVR>
=item * L<Business::DK::CPR>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Fixflo/Property.pm view on Meta::CPAN
use strict;
use warnings;
use Moo;
use Try::Tiny;
use Carp qw/ carp /;
use Business::Fixflo::Exception;
use Business::Fixflo::Address;
extends 'Business::Fixflo::Resource';
view all matches for this distribution
view release on metacpan or search on metacpan
0.07 2014-09-16
- Add Webhook support (https://developer.gocardless.com/#webhook-overview)
0.06 2014-09-10
- Replace use of TryCatch with Try::Tiny in tests
0.05 2014-09-06
- Kwalitee improvements in distribution
0.04 2014-09-06
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Mondo/Resource.pm view on Meta::CPAN
use Moo;
use Carp qw/ confess carp /;
use Mojo::JSON qw/ encode_json /;
use Scalar::Util qw/ blessed /;
use Try::Tiny;
=head1 ATTRIBUTES
The Resource class has the following attributes (with their type).
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Monzo/Resource.pm view on Meta::CPAN
use Moo;
use Carp qw/ confess carp /;
use Mojo::JSON qw/ encode_json /;
use Scalar::Util qw/ blessed /;
use Try::Tiny;
=head1 ATTRIBUTES
The Resource class has the following attributes (with their type).
view all matches for this distribution
view release on metacpan or search on metacpan
features/step_definitions/invoice_steps.pl view on Meta::CPAN
use lib 'lib';
use Test::More;
use Test::BDD::Cucumber::StepFile;
use Business::OnlinePayment::BitPay::Client;
use Try::Tiny;
use Env;
require Business::OnlinePayment::BitPay::KeyUtils;
require 'features/step_definitions/helpers.pl';
my $client;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/OnlinePayment/CyberSource/Client.pm view on Meta::CPAN
use Moose;
use Module::Runtime qw( use_module );
use MooseX::Aliases;
use MooseX::StrictConstructor;
use Try::Tiny;
use Business::CyberSource::Client 0.007006;
use MooseX::Types::CyberSource qw(AVSResult);
use MooseX::Types::Moose qw(Bool HashRef Int Str);
use MooseX::Types::Common::String qw(NonEmptySimpleStr);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/OnlinePayment/PaperlessTrans.pm view on Meta::CPAN
version 0.001006
=head1 SYNOPSIS
use Try::Tiny;
use Business::OnlinePayment;
my $tx = Business::OnlinePayment->new('PaperlessTrans');
$tx->test_transaction(1);
view all matches for this distribution
view release on metacpan or search on metacpan
'HTTP::Request' => 0,
'JSON' => 0,
'LWP::UserAgent' => 0,
'MIME::Base64' => 0,
'Test::More' => 0.94,
'Try::Tiny' => 0,
},
requires =>
{
'perl' => 5.006,
},
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Tax/Avalara.pm view on Meta::CPAN
use 5.010;
use strict;
use warnings;
use Try::Tiny;
use Carp;
use LWP;
use HTTP::Request::Common;
use Encode qw();
use Data::Dump;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/TrueLayer/Authenticator.pm view on Meta::CPAN
no warnings qw/ experimental::signatures experimental::postderef /;
use Business::TrueLayer::Types;
use Try::Tiny::SmartCatch;
use Mojo::UserAgent;
use Carp qw/ croak /;
use JSON;
has 'scope' => (
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/UPS/Tracking/Request.pm view on Meta::CPAN
use Moose;
use DateTime;
use XML::LibXML;
use Moose::Util::TypeConstraints;
use Try::Tiny;
use Business::UPS::Tracking::Utils;
use Business::UPS::Tracking::Response;
=encoding utf8
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/YQL.pm view on Meta::CPAN
use URI::QueryParam;
use LWP::UserAgent;
use JSON qw(to_json from_json);
use Carp qw(croak);
use Log::Any qw($log);
use Try::Tiny;
has scheme => (is => 'ro', default => 'http' );
has domain => (is => 'ro', default => 'query.yahooapis.com' );
has version => (is => 'ro', default => 'v1' );
has timeout => (is => 'ro', default => 10 );
view all matches for this distribution
view release on metacpan or search on metacpan
lib/BusyBird/DateTime/Format.pm view on Meta::CPAN
package BusyBird::DateTime::Format;
use strict;
use warnings;
use DateTime::Format::Strptime;
use Try::Tiny;
our $VERSION = "0.05";
our $preferred = 0;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/BusyBird/Input/Feed.pm view on Meta::CPAN
use warnings;
use XML::FeedPP;
use DateTime::Format::ISO8601;
use BusyBird::DateTime::Format;
use DateTime;
use Try::Tiny;
use Carp;
use WWW::Favicon ();
use LWP::UserAgent;
use URI;
our $VERSION = "0.07";
our @CARP_NOT = qw(Try::Tiny XML::FeedPP);
sub new {
my ($class, %args) = @_;
my $self = bless {
use_favicon => defined($args{use_favicon}) ? $args{use_favicon} : 1,
view all matches for this distribution
view release on metacpan or search on metacpan
lib/BusyBird/Flow.pm view on Meta::CPAN
use Async::Queue;
use BusyBird::Log qw(bblog);
use CPS qw(kforeach);
use Carp;
use Scalar::Util qw(weaken);
use Try::Tiny;
sub new {
my ($class) = @_;
my $self = bless {
filters => [],
view all matches for this distribution
view release on metacpan or search on metacpan
lib/BuzzSaw/DB/Schema/Result/Event.pm view on Meta::CPAN
# $Date: 2013-04-04 17:08:20 +0100 (Thu, 04 Apr 2013) $
our $VERSION = '0.12.0';
use DateTime;
use Try::Tiny;
use base 'DBIx::Class::Core';
=head1 NAME
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Application/Dispatch.pm view on Meta::CPAN
package CGI::Application::Dispatch;
use strict;
use warnings;
use Carp 'carp';
use Try::Tiny;
our $VERSION = '3.12';
our $DEBUG = 0;
BEGIN {
view all matches for this distribution
view release on metacpan or search on metacpan
"Filter::Util::Call" : "0",
"Sub::Identify" : "0",
"Test::More" : "0",
"Test::NoWarnings" : "0",
"Test::Requires" : "0",
"Try::Tiny" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Github/Webhook.pm view on Meta::CPAN
use Moo;
use CGI;
use Data::Dumper;
use JSON;
use Try::Tiny;
use Digest::SHA qw(hmac_sha1_hex);
use File::ShareDir qw(module_dir);
use File::Copy;
use File::Basename;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Snapp/Dispatch.pm view on Meta::CPAN
use Log::Handler;
use Moo;
use Try::Tiny;
has logger =>
(
is => 'rw',
default => sub{return ''},
lib/CGI/Snapp/Dispatch.pm view on Meta::CPAN
See sub _parse_error_document() and t/args.t test_26().
=head3 Handling of exceptions
L<CGI::Application::Dispatch> uses a combination of eval and L<Try::Tiny>, together with L<Exception::Class>.
Likewise, L<CGI::Application::Dispatch::PSGI> uses the same combination, although without L<Exception::Class>.
CGI::Snapp::Dispatch just uses L<Try::Tiny>. This applies both to CGI scripts and PSGI scripts.
For L<CGI> scripts, errors are handled by sub _http_errror(). For L<PSGI|http://plackperl.org/> scripts, the code
throws errors of type L<HTTP::Exception>.
=head2 How does CGI::Snapp parse the path info?
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Snapp.pm view on Meta::CPAN
use Log::Handler;
use Moo;
use Try::Tiny;
has _current_run_mode =>
(
is => 'rw',
default => sub{return ''},
lib/CGI/Snapp.pm view on Meta::CPAN
=over 4
=item o Use of utf8::downgrade() to turn off utf8 bit on headers
=item o Use of Try::Tiny rather than eval
Ideally, this won't be detectable, and hence won't matter.
=item o call_hook(...) returns a hashref - keys are 'class' and 'object' - of counts of hooks actually called
lib/CGI/Snapp.pm view on Meta::CPAN
See L</delete_header(@keys)> for how to delete any number of HTTP headers.
=item o Calling the error_mode() method
This call is protected by Try::Tiny.
=item o Calling mode_param([...])
mode_param() can be called with an arrayref, as in $self -> mode_param([qw/path_info -2/]). See t/run.modes.pl for details.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CHI/Driver/MongoDB.pm view on Meta::CPAN
use Moo;
use MongoDB;
use BSON;
use BSON::Types qw( bson_bytes bson_time );
use URI::Escape::XS;
use Try::Tiny;
use strict;
use warnings;
extends 'CHI::Driver';
view all matches for this distribution
view release on metacpan or search on metacpan
etc/bench/bench.pl view on Meta::CPAN
use Hash::MoreUtils qw(slice_def);
use List::Util qw(sum);
use List::MoreUtils qw(uniq);
use Pod::Usage;
use Text::Table;
use Try::Tiny;
use YAML::Any qw(DumpFile);
use Module::Runtime qw(require_module);
use warnings;
use strict;
view all matches for this distribution