1
0

errors.ts 384 B

1234567891011121314
  1. /**
  2. * @module lib/errors
  3. * Contains custom error classes
  4. */
  5. import { DatedError } from "@sv443-network/coreutils";
  6. /** Error due to the platform, like using a feature that's not supported by the browser */
  7. export class PlatformError extends DatedError {
  8. constructor(message: string, options?: ErrorOptions) {
  9. super(message, options);
  10. this.name = "PlatformError";
  11. }
  12. }