Spaces:
Paused
Paused
Download src/media-understanding/errors.ts from nikhtu10/OpenClawBot: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/src/media-understanding/errors.ts
- Command line
-
hf download hf://spaces/nikhtu10/OpenClawBot/src/media-understanding/errors.ts
-
curl -L -o errors.ts https://huggingface.co/spaces/nikhtu10/OpenClawBot/resolve/main/src/media-understanding/errors.ts
525 Bytes
| export type MediaUnderstandingSkipReason = "maxBytes" | "timeout" | "unsupported" | "empty"; | |
| export class MediaUnderstandingSkipError extends Error { | |
| readonly reason: MediaUnderstandingSkipReason; | |
| constructor(reason: MediaUnderstandingSkipReason, message: string) { | |
| super(message); | |
| this.reason = reason; | |
| this.name = "MediaUnderstandingSkipError"; | |
| } | |
| } | |
| export function isMediaUnderstandingSkipError(err: unknown): err is MediaUnderstandingSkipError { | |
| return err instanceof MediaUnderstandingSkipError; | |
| } | |