UNPKG

osrs-tools

Version:

A comprehensive TypeScript library for Old School RuneScape (OSRS) data and utilities, including quest data, skill requirements, and game item information

16 lines (15 loc) 367 B
/** * Custom error for validation failures in OSRS tools */ export class ValidationError extends Error { fieldName; value; context; constructor(fieldName, value, message, context) { super(message); this.name = "ValidationError"; this.fieldName = fieldName; this.value = value; this.context = context; } }