UNPKG

@hexadrop/query

Version:

Hexagonal architecture utils library

2 lines 741 B
import i from"@hexadrop/error";var t=class extends i{constructor(){super("InvalidQueryError","The query hasn't an 'QUERY_NAME' static property","HEX(500)")}};import f from"@hexadrop/error";var s=class extends f{constructor(r){let e="";r instanceof Error?e=r.message:typeof r=="string"?e=r:typeof r=="object"&&r!==null&&("message"in r&&typeof r.message=="string"?e=r.message:"error"in r&&typeof r.error=="string"?e=r.error:e=JSON.stringify(r)),super("QueryHandlerError",e,"HEX(500)")}};import u from"@hexadrop/error/invalid-argument";var o=class extends u{constructor(r){super(`The query '${r}' hasn't a query handler associated`,"QueryNotRegisteredError","HEX(500)")}};export{t as a,s as b,o as c}; //# sourceMappingURL=chunk-FJNOTJLN.js.map