errors.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export declare function EBUSY(message: string): Error & {
  2. code: string;
  3. };
  4. export declare function ENOSYS(message: string, reason: string): Error & {
  5. code: string;
  6. };
  7. export declare function EINVAL(reason: string): Error & {
  8. code: string;
  9. };
  10. export declare function EBADF(reason: string): Error & {
  11. code: string;
  12. };
  13. export declare function ENOENT(reason: string): Error & {
  14. code: string;
  15. };
  16. export declare function ENOTDIR(reason: string): Error & {
  17. code: string;
  18. };
  19. export declare function EISDIR(reason: string): Error & {
  20. code: string;
  21. };
  22. export declare function EEXIST(reason: string): Error & {
  23. code: string;
  24. };
  25. export declare function EROFS(reason: string): Error & {
  26. code: string;
  27. };
  28. export declare function ENOTEMPTY(reason: string): Error & {
  29. code: string;
  30. };
  31. export declare function EOPNOTSUPP(reason: string): Error & {
  32. code: string;
  33. };
  34. export declare function ERR_DIR_CLOSED(): Error & {
  35. code: string;
  36. };
  37. export declare class LibzipError extends Error {
  38. code: string;
  39. constructor(message: string, code: string);
  40. }