superfaceai / service-client

Library provides client for superface backend apis.
MIT License
5 stars 1 forks source link

Create provider and profile throws specific errors #79

Closed janhalama closed 2 years ago

janhalama commented 2 years ago

Description

This PR changes errors thrown bycreateProvider and createProfile to CreateProviderApiError and CreateProfileApiError.

This is not breaking change, CreateProviderApiError and CreateProfileApiError extends ServiceApiError.

Motivation and Context

So that clients can access specific error properties.

Types of changes

Checklist: