UNPKG

kenya-locations

Version:

A comprehensive and intuitive TypeScript package for working with Kenyan administrative divisions (counties, sub-counties, constituencies, and wards)

2 lines (1 loc) 780 B
"use strict";class o extends Error{constructor(r){super(r),this.name="LocationError"}}class n extends o{constructor(r,a){super(`${r} with identifier "${a}" not found`),this.name="LocationNotFoundError"}}class i extends o{constructor(r){super(`Invalid location code format: ${r}`),this.name="InvalidLocationCodeError"}}class e extends o{constructor(r){super(`Search error: ${r}`),this.name="SearchError"}}class s extends o{constructor(r){super(`Data validation error: ${r}`),this.name="DataValidationError"}}class c extends o{constructor(r){super(`Configuration error: ${r}`),this.name="ConfigurationError"}}exports.ConfigurationError=c;exports.DataValidationError=s;exports.InvalidLocationCodeError=i;exports.LocationError=o;exports.LocationNotFoundError=n;exports.SearchError=e;