Package Exports
- @semantic-release/error
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@semantic-release/error) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@semantic-release/error
Error type used by all semantic-release packages.
Usage
const SemanticReleaseError = require('@semantic-release/error');
// Default
throw new SemanticReleaseError();
// With error message
throw new SemanticReleaseError('An error happened');
// With error message and error code
throw new SemanticReleaseError('An error happened', 'ECODE');