import type { Resource } from "@ldo/connected"; import { ResourceError } from "@ldo/connected"; /** * A NoncompliantPodError is returned when the server responded in a way that is * not compliant with the Solid specification. */ export class NoRootContainerError< ResourceType extends Resource, > extends ResourceError { readonly type = "noRootContainerError" as const; /** * @param resource - the requested resource * @param message - a custom message for the error */ constructor(resource: ResourceType) { super(resource, `${resource.uri} has not root container.`); } }