bail

WebJar for bail

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

bail
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

bail
WebJar for bail
Project URL

Project URL

http://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.bower/bail/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>bail</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/bail/
implementation 'org.webjars.bower:bail:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.bower/bail/
implementation ("org.webjars.bower:bail:1.0.3")
'org.webjars.bower:bail:jar:1.0.3'
<dependency org="org.webjars.bower" name="bail" rev="1.0.3">
  <artifact name="bail" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='bail', version='1.0.3')
)
libraryDependencies += "org.webjars.bower" % "bail" % "1.0.3"
[org.webjars.bower/bail "1.0.3"]

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

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install bail

Use

import {bail} from 'bail'

bail()

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

API

This package exports the following identifiers: bail. There is no default export.

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.3