New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

clay-errors

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clay-errors

Custom error classes for ClayDB

latest
Source
npmnpm
Version
3.1.1
Version published
Maintainers
2
Created
Source

clay-errors

Build Status npm Version JS Standard

Custom error classes for ClayDB

Installation

$ npm install clay-errors --save

Usage

'use strict'

const { NotFoundError } = require('clay-errors')

{
  const doThrow = () => {
    throw new NotFoundError({})
  }

  doThrow()
}

API

clay-errors@3.0.1

Custom error classes for ClayDB

Functions

NotFoundError Class

Resource not found error

Extends:

  • Error

new NotFoundError(message, detail)

Constructor of NotFoundError class

ParamTypeDescription
messagestringError message
detailObjectError detail

PolicyError Class

Policy validation error

Extends:

  • Error

new PolicyError(message, detail)

Constructor of PolicyError class

ParamTypeDescription
messagestringError message
detailObjectError detail

SituationError Class

Situation error

Extends:

  • Error

new SituationError(message, detail)

Constructor of SituationError class

ParamTypeDescription
messagestringError message
detailObjectError detail

License

This software is released under the Apache-2.0 License.

Keywords

ClayDB

FAQs

Package last updated on 04 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts