Business-CPI

 view release on metacpan or  search on metacpan

t/08exception.t  view on Meta::CPAN

#!/usr/bin/env perl
use warnings;
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',
        gateway_data => {
            foo => 1,
            bar => 2,
        }
    );



( run in 0.767 second using v1.01-cache-2.11-cpan-05444aca049 )