{"version":3,"file":"NoncompliantPodError.mjs","names":[],"sources":["../../../../src/requester/results/error/NoncompliantPodError.ts"],"sourcesContent":["import type { Resource } from \"@ldo/connected\";\nimport { ResourceError } from \"@ldo/connected\";\n\n/**\n * A NoncompliantPodError is returned when the server responded in a way that is\n * not compliant with the Solid specification.\n */\nexport class NoncompliantPodError<\n  ResourceType extends Resource,\n> extends ResourceError<ResourceType> {\n  readonly type = \"noncompliantPodError\" as const;\n\n  /**\n   * @param resource - the requested resource\n   * @param message - a custom message for the error\n   */\n  constructor(resource: ResourceType, message?: string) {\n    super(\n      resource,\n      `Response from ${resource.uri} is not compliant with the Solid Specification: ${message}`,\n    );\n  }\n}\n"],"mappings":";;;;;;AAOA,IAAa,uBAAb,cAEU,cAA4B;;;;;CAOpC,YAAY,UAAwB,SAAkB;AACpD,QACE,UACA,iBAAiB,SAAS,IAAI,kDAAkD,UACjF;AAVH,OAAS,OAAO"}