mirror of
https://github.com/semantic-release/semantic-release.git
synced 2026-10-26 16:09:37 +00:00
15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
import SemanticReleaseError from "@semantic-release/error";
|
|
|
|
class InheritedError extends SemanticReleaseError {
|
|
constructor(message, code) {
|
|
super(message);
|
|
Error.captureStackTrace(this, this.constructor);
|
|
this.name = this.constructor.name;
|
|
this.code = code;
|
|
}
|
|
}
|
|
|
|
export default () => {
|
|
throw new InheritedError("Inherited error", "EINHERITED");
|
|
};
|