1import * as Schema from "effect/Schema";
2
3export class NativeViewResolutionError extends Schema.TaggedError<NativeViewResolutionError>()(
4 "NativeViewResolutionError",
5 {
6 nativeModuleName: Schema.String,
7 cause: Schema.Defect(),
8 },
9) {
10 override get message(): string {
11 return `Failed to resolve native view ${this.nativeModuleName}.`;
12 }
13}