UNPKG

ts-data-objects

Version:

Simple lightweight library for enhancing plain JS objects with TypeScript wrappers enabling easy API data assertion and validation

11 lines (10 loc) 319 B
class n extends Error { constructor(o, s, r) { const t = JSON.stringify(s, null, 4), a = r ? ` Invalid value for [${r}]` : ""; super(`Model Validation Error → [${o}] {${t}}.${a}`), this.dataType = o, this.value = s, this.detail = r; } } export { n as D }; //# sourceMappingURL=dataError-aVfBT4F-.js.map