[codex] Structure native view resolution failures (#3353)

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex authored and GitHub committed 2026-06-20 11:06:08 -07:00
1 parent 350e229f7a
commit 779c237487
5 files changed
+71 -4

No files matched your search

@@ -0,0 +1,13 @@
import * as Schema from "effect/Schema";
export class NativeViewResolutionError extends Schema.TaggedErrorClass<NativeViewResolutionError>()(
"NativeViewResolutionError",
{
nativeModuleName: Schema.String,
cause: Schema.Defect(),
},
) {
override get message(): string {
return `Failed to resolve native view ${this.nativeModuleName}.`;
}
}