12 lines
227 B
TypeScript
12 lines
227 B
TypeScript
import { Data } from "effect"
|
|
|
|
|
|
export class ImportError extends Data.TaggedError("ImportError")<{
|
|
path: string
|
|
cause: unknown
|
|
}> {
|
|
toString(): string {
|
|
return `Could not import '${ this.path }'`
|
|
}
|
|
}
|