{"version":3,"file":"InvalidUriError.mjs","names":[],"sources":["../../../src/results/error/InvalidUriError.ts"],"sourcesContent":["import type { Resource } from \"../../Resource\";\nimport { ResourceError } from \"./ErrorResult\";\n\n/**\n * An InvalidUriError is returned when a URI was provided that is not a valid\n * URI.\n */\nexport class InvalidUriError<\n  ResourceType extends Resource,\n> extends ResourceError<ResourceType> {\n  readonly type = \"invalidUriError\" as const;\n\n  constructor(resource: ResourceType, message?: string) {\n    super(resource, message || `${resource.uri} is an invalid uri.`);\n  }\n}\n"],"mappings":";;;;;;AAOA,IAAa,kBAAb,cAEU,cAA4B;CAGpC,YAAY,UAAwB,SAAkB;AACpD,QAAM,UAAU,WAAW,GAAG,SAAS,IAAI,qBAAqB;AAHlE,OAAS,OAAO"}