Files
feeddeck/supabase/functions/_shared/feed/utils/errors.ts
Rico Berger 0894f0e777 [core] Improve Error Handling for Feed Edge Functions (#103)
This commit improve the error handling for the edge function to add a
new source and the worker, so that we get more insights why a request
fails. A user will now also get a more detailed error why a source could
not be added.
2023-12-17 12:10:04 +01:00

14 lines
294 B
TypeScript

export class FeedValidationError extends Error {
constructor(message: string) {
super(message);
this.name = 'FeedValidationError';
}
}
export class FeedGetAndParseError extends Error {
constructor(message: string) {
super(message);
this.name = 'FeedGetParseError';
}
}