@hexadrop/command
Version:
Hexagonal architecture utils library
2 lines • 387 B
JavaScript
import t from"@hexadrop/error";var s=class extends t{constructor(e){let r="";e instanceof Error?r=e.message:typeof e=="string"?r=e:typeof e=="object"&&e!==null&&("message"in e&&typeof e.message=="string"?r=e.message:"error"in e&&typeof e.error=="string"?r=e.error:r=JSON.stringify(e)),super("CommandHandlerError",r,"HEX(500)")}};export{s as a};
//# sourceMappingURL=chunk-LHZGEWBL.js.map