UNPKG

@semantic-release/error

Version:
11 lines (10 loc) 300 B
export default class SemanticReleaseError extends Error { constructor(message, code, details) { super(message); Error.captureStackTrace(this, this.constructor); this.name = "SemanticReleaseError"; this.code = code; this.details = details; this.semanticRelease = true; } }