mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-05-23 23:41:19 -05:00
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.
14 lines
294 B
TypeScript
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';
|
|
}
|
|
}
|