import{HttpStatusCodes as e}from"../httpStatusCodes.mjs";import{errorData as t}from"./errorCodes.mjs";import{t as n}from"fastify-intlayer";var r=class extends Error{isAppError=!0;name;isMultilingual=!0;errorKey;title;multilingualTitle;message;multilingualMessage;httpStatusCode;messageDetails;constructor(t,r,i,a=e.INTERNAL_SERVER_ERROR_500,o){let s=n(t),c=n(r);super(c),this.title=s,this.multilingualTitle=t,this.message=c,this.multilingualMessage=r,this.name=`AppError`,this.errorKey=i,this.httpStatusCode=a,this.messageDetails=o,Error.captureStackTrace(this,this.constructor)}},i=class extends r{constructor(e,n){let r=t[e].title,i=t[e].message,a=t[e].statusCode;super(r,i,e,a,n)}};export{r as AppError,i as GenericError};
//# sourceMappingURL=ErrorsClass.mjs.map