@afriex/core
Version:
HTTP client, configuration and typed errors for the Afriex Business API SDK
14 lines • 357 B
JavaScript
import { AfriexError } from "./AfriexError.js";
export class ValidationError extends AfriexError {
constructor(message, fields = []) {
super(message);
this.fields = fields;
}
toJSON() {
return {
...super.toJSON(),
fields: this.fields,
};
}
}
//# sourceMappingURL=ValidationError.js.map