Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.
/ flaw Public archive

Lightweight and simple error creation in JavaScript.

License

Notifications You must be signed in to change notification settings

sorellabs/flaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flaw

Build Status NPM version Dependencies Status stable

Lightweight and simple error creation in JavaScript.

browser support

Example

var flaw = require('flaw')

// Simple error creation
var ParsingError = flaw('ParsingError')
throw ParsingError('Unknow token at...', { line: 1 })

// Raising errors in an expression
n > 0 ? m / n
      : raise(flaw('DivideByZero', 'Can\'t divide by 0'))

Installation

$ npm install flaw

Documentation

$ npm install -g calliope
$ calliope build

Then open docs/api/index.html in your browser.

Licence

MIT/X11. ie.: do whatever you want.

About

Lightweight and simple error creation in JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published