Skip to content

Want to catch exception #3

Description

@ytnobody

Want to catch exception when request was failed.

Example.

use strict;
use warnings;
use Try::Tiny;
use WebService::Azure::Search;

my $azure = WebService::Azure::Search->new(...);
my $search = $azure->search(...);
my $result = try { 
    $search->run 
} catch { 
    warn "$_ : $!";
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions