autonym-client-errors

A package that exports some error classes for the Autonym API framework.

Usage no npm install needed!

<script type="module">
  import autonymClientErrors from 'https://cdn.skypack.dev/autonym-client-errors';
</script>

README

autonym-client-errors

This is a package for the Autonym API framework. It is a collection of error classes that represent errors made during the API request on behalf of the client.

Usage

import {BadRequestError, ClientError} from 'autonym-client-errors';
let error = new BadRequestError('Something is wrong with your request.');
console.log(error instanceof ClientError); // true