the-moby-effect
Version:
Moby/Docker API client built using effect-ts
21 lines • 688 B
JavaScript
import * as Data from "effect/Data";
import * as Predicate from "effect/Predicate";
/** @internal */
export const DockerErrorTypeId = /*#__PURE__*/Symbol.for("@the-moby-effect/engines/Docker/DockerError");
/** @internal */
export const isDockerError = u => Predicate.hasProperty(u, DockerErrorTypeId);
/** @internal */
export class DockerError extends /*#__PURE__*/Data.TaggedError("DockerError") {
[DockerErrorTypeId] = DockerErrorTypeId;
get message() {
return `When calling ${this.method} in ${this.module}`;
}
static WrapForModule(module) {
return method => cause => new this({
module,
method,
cause
});
}
}
//# sourceMappingURL=circular.js.map