mirror of
https://github.com/michivonah/themepark-assistant.git
synced 2025-12-22 22:16:29 +01:00
14 lines
No EOL
355 B
TypeScript
14 lines
No EOL
355 B
TypeScript
// Errors in custom libs
|
|
import { BaseError } from "./base-error";
|
|
|
|
export class LibError extends BaseError{}
|
|
|
|
export class FetchError extends LibError{
|
|
constructor(cause?: unknown, source?: string){
|
|
super(
|
|
source
|
|
? `Fetching data from ${source} failed`
|
|
: 'Fetching data failed',
|
|
cause);
|
|
}
|
|
} |