Error
Error
TypeIdError
Added in v1.0.0
Source
Signature
declare function TypeIdError<TypeId extends symbol, Tag extends string>(typeId: TypeId, tag: Tag): <A extends Record<string, any>>(args: Simplify<A>) => YieldableError & Record<TypeId, TypeId> & { readonly _tag: Tag;} & Readonly<A>Model
SystemErrorReason
Added in v1.0.0
Source
Signature
declare const SystemErrorReason: Literal<"AlreadyExists">SystemErrorReason type
Added in v1.0.0
Source
Signature
type SystemErrorReason = typeof SystemErrorReason.TypeModels
BadArgument
Added in v1.0.0
Source
Signature
declare class BadArgument extends { readonly _tag: "BadArgument"; readonly cause?: unknown; readonly description?: string; readonly method: string; readonly module: "Clipboard";} & YieldableError<this> { constructor(...args: [props: { readonly _tag?: "BadArgument"; readonly cause?: unknown; readonly description?: string; readonly method: string; readonly module: "Clipboard"; }, options?: MakeOptions]); readonly [TypeId]: typeof TypeId; message: string;}Signature
declare const Module: Literal<"Clipboard">PlatformError
Added in v1.0.0
Source
Signature
declare const PlatformError: Union<[typeof BadArgument, typeof SystemError]>PlatformError type
Added in v1.0.0
Source
Signature
type PlatformError = BadArgument | SystemErrorModels
SystemError
Added in v1.0.0
Source
Signature
declare class SystemError extends { readonly _tag: "SystemError"; readonly cause?: unknown; readonly description?: string; readonly method: string; readonly module: "Clipboard"; readonly pathOrDescriptor?: unknown; readonly reason: "AlreadyExists"; readonly syscall?: string;} & YieldableError<this> { constructor(...args: [props: { readonly _tag?: "SystemError"; readonly cause?: unknown; readonly description?: string; readonly method: string; readonly module: "Clipboard"; readonly pathOrDescriptor?: unknown; readonly reason: "AlreadyExists"; readonly syscall?: string; }, options?: MakeOptions]); readonly [TypeId]: typeof TypeId; message: string;}Refinements
isPlatformError
Added in v1.0.0
Source
Signature
declare function isPlatformError(u: unknown): u is PlatformError