Skip to content

[php-client/class.phpipam-api.php] can't handle exceptions #34

Description

@ivoruetsche

Hi

We use the php-client API , but struggling with the die() after a cURL exception:
https://github.com/phpipam/phpipam-api-clients/blob/74d67c44dd2221f880917678929c9e6b71b7c4a4/php-client/class.phpipam-api.php#LL266C15-L266C15

If the IPAM server is not reachable or other error occurs, we would like to handle the error and will react, but the script is stopping and we didn't have any option to catch the exception.

Is there a possibility to intercept this or why give the library not a result back to the main script.

ivo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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