bail

WebJar for bail

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

bail
Last Version

Last Version

1.0.5
Release Date

Release Date

Type

Type

jar
Description

Description

bail
WebJar for bail
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/wooorm/bail

Download bail

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/bail/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>bail</artifactId>
    <version>1.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/bail/
implementation 'org.webjars.npm:bail:1.0.5'
// https://jarcasting.com/artifacts/org.webjars.npm/bail/
implementation ("org.webjars.npm:bail:1.0.5")
'org.webjars.npm:bail:jar:1.0.5'
<dependency org="org.webjars.npm" name="bail" rev="1.0.5">
  <artifact name="bail" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='bail', version='1.0.5')
)
libraryDependencies += "org.webjars.npm" % "bail" % "1.0.5"
[org.webjars.npm/bail "1.0.5"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

bail

Build Coverage Downloads Size

⚠️ Throw a given error.

Install

npm:

npm install bail

Use

var bail = require('bail')

bail()

bail(new Error('failure'))
// Error: failure
//     at repl:1:6
//     at REPLServer.defaultEval (repl.js:154:27)
//     …

API

bail([err])

Throw a given error.

Parameters
  • err (Error?) — Optional error.
Throws
  • Error — Given error, if any.

Related

License

MIT © Titus Wormer

Versions

Version
1.0.5
1.0.4
1.0.3
1.0.2