errors.d.ts 836 B

12345678910111213141516171819202122232425262728
  1. import type { QuickJSContext } from "./context";
  2. /**
  3. * Error thrown if [[QuickJSContext.unwrapResult]] unwraps an error value that isn't an object.
  4. */
  5. export declare class QuickJSUnwrapError extends Error {
  6. cause: unknown;
  7. context?: QuickJSContext | undefined;
  8. name: string;
  9. constructor(cause: unknown, context?: QuickJSContext | undefined);
  10. }
  11. export declare class QuickJSWrongOwner extends Error {
  12. name: string;
  13. }
  14. export declare class QuickJSUseAfterFree extends Error {
  15. name: string;
  16. }
  17. export declare class QuickJSNotImplemented extends Error {
  18. name: string;
  19. }
  20. export declare class QuickJSAsyncifyError extends Error {
  21. name: string;
  22. }
  23. export declare class QuickJSAsyncifySuspended extends Error {
  24. name: string;
  25. }
  26. export declare class QuickJSMemoryLeakDetected extends Error {
  27. name: string;
  28. }