Branch Coverage

blib/lib/PONAPI/Exception.pm
Criterion Covered Total %
branch 17 20 85.0


line true false branch
11 0 20 &blessed($class_or_obj) ? :
64 3 45 if ($self->sql_error) { }
7 38 elsif ($self->bad_request_data) { }
72 14 24 if $detail
85 19 28 if &blessed($e) and $e->isa($class)
89 24 4 unless ($args_for_new{'status'} and $args_for_new{'message'})
102 24 4 unless &blessed($e) or $e->isa('Moose::Exception')
104 2 2 if ($e->isa('Moose::Exception::AttributeIsRequired')) { }
2 0 elsif ($e->isa('Moose::Exception::ValidationFailedForTypeConstraint') or $e->isa('Moose::Exception::ValidationFailedForInlineTypeConstraint')) { }
116 0 2 unless ($attribute)