function e(e,r){const t=Object.create(SyntaxError.prototype),n=new Error;return Object.assign(t,{name:e,message:r,get stack(){return(n.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${r}\n`)}})}export{e as createCustomError};