Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

💥 💬 errors but with error code

License

NotificationsYou must be signed in to change notification settings

semantic-release/error

Repository files navigation

Error type used by allsemantic-release packages.

Build Status

Errors of typeSemanticReleaseError or an inherited type will be considered bysemantic-release as an expected exception case (no release to be done, running on a PR etc..). That indicate to thesemantic-release process to stop and exit with the0 success code.

Any other type of error will be considered bysemantic-release as an unexpected error (i/o issue, code problem etc...). That indicate to thesemantic-release process to stop, log the error and exit with the1 failure code.

Usage

importSemanticReleaseErrorfrom"@semantic-release/error";// DefaultthrownewSemanticReleaseError();// With error messagethrownewSemanticReleaseError("An error happened");// With error message and error codethrownewSemanticReleaseError("An error happened","ECODE");// With error message, error code and detailsthrownewSemanticReleaseError("An error happened","ECODE","Here is some suggestions to solve this error.");// With inheritanceclassInheritedErrorextendsSemanticReleaseError{constructor(message,code,newProperty,details){super(message);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=code;this.details=details;this.newProperty="newProperty";}}thrownewInheritedError("An error happened","ECODE","Here is some suggestions to solve this error.");

About

💥 💬 errors but with error code

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors12


[8]ページ先頭

©2009-2025 Movatter.jp