@tsed/exceptions 6.95.6 → 6.95.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/package.json +2 -2
  2. package/lib/cjs/clientErrors/BadMapping.d.ts +0 -6
  3. package/lib/cjs/clientErrors/BadRequest.d.ts +0 -5
  4. package/lib/cjs/clientErrors/Conflict.d.ts +0 -5
  5. package/lib/cjs/clientErrors/ExpectationFailed.d.ts +0 -5
  6. package/lib/cjs/clientErrors/Forbidden.d.ts +0 -5
  7. package/lib/cjs/clientErrors/Gone.d.ts +0 -5
  8. package/lib/cjs/clientErrors/ImATeapot.d.ts +0 -6
  9. package/lib/cjs/clientErrors/LengthRequired.d.ts +0 -5
  10. package/lib/cjs/clientErrors/MethodNotAllowed.d.ts +0 -5
  11. package/lib/cjs/clientErrors/MisdirectedRequest.d.ts +0 -5
  12. package/lib/cjs/clientErrors/NotAcceptable.d.ts +0 -5
  13. package/lib/cjs/clientErrors/NotFound.d.ts +0 -5
  14. package/lib/cjs/clientErrors/PaymentRequired.d.ts +0 -5
  15. package/lib/cjs/clientErrors/PreconditionFailed.d.ts +0 -5
  16. package/lib/cjs/clientErrors/PreconditionRequired.d.ts +0 -5
  17. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.d.ts +0 -5
  18. package/lib/cjs/clientErrors/RequestEntityTooLarge.d.ts +0 -5
  19. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.d.ts +0 -5
  20. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.d.ts +0 -5
  21. package/lib/cjs/clientErrors/RequestTimeout.d.ts +0 -5
  22. package/lib/cjs/clientErrors/RequestURITooLong.d.ts +0 -5
  23. package/lib/cjs/clientErrors/TooManyRequests.d.ts +0 -5
  24. package/lib/cjs/clientErrors/Unauthorized.d.ts +0 -5
  25. package/lib/cjs/clientErrors/UnavailableForLegalReasons.d.ts +0 -5
  26. package/lib/cjs/clientErrors/UnprocessableEntity.d.ts +0 -5
  27. package/lib/cjs/clientErrors/UnsupportedMediaType.d.ts +0 -5
  28. package/lib/cjs/clientErrors/UpgradeRequired.d.ts +0 -5
  29. package/lib/cjs/clientErrors/index.d.ts +0 -27
  30. package/lib/cjs/core/Exception.d.ts +0 -45
  31. package/lib/cjs/core/index.d.ts +0 -1
  32. package/lib/cjs/index.d.ts +0 -4
  33. package/lib/cjs/redirections/MovedPermanently.d.ts +0 -5
  34. package/lib/cjs/redirections/MovedTemporarily.d.ts +0 -6
  35. package/lib/cjs/redirections/MultipleChoices.d.ts +0 -5
  36. package/lib/cjs/redirections/NotModified.d.ts +0 -5
  37. package/lib/cjs/redirections/PermanentRedirect.d.ts +0 -5
  38. package/lib/cjs/redirections/SeeOther.d.ts +0 -5
  39. package/lib/cjs/redirections/TemporaryRedirect.d.ts +0 -5
  40. package/lib/cjs/redirections/TooManyRedirects.d.ts +0 -5
  41. package/lib/cjs/redirections/UseProxy.d.ts +0 -5
  42. package/lib/cjs/redirections/index.d.ts +0 -9
  43. package/lib/cjs/serverErrors/BadGateway.d.ts +0 -5
  44. package/lib/cjs/serverErrors/BandwidthLimitExceeded.d.ts +0 -5
  45. package/lib/cjs/serverErrors/GatewayTimeout.d.ts +0 -5
  46. package/lib/cjs/serverErrors/InternalServerError.d.ts +0 -5
  47. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.d.ts +0 -5
  48. package/lib/cjs/serverErrors/NotExtended.d.ts +0 -5
  49. package/lib/cjs/serverErrors/NotImplemented.d.ts +0 -5
  50. package/lib/cjs/serverErrors/ProxyError.d.ts +0 -6
  51. package/lib/cjs/serverErrors/ServiceUnvailable.d.ts +0 -5
  52. package/lib/cjs/serverErrors/VariantAlsoNegotiates.d.ts +0 -5
  53. package/lib/cjs/serverErrors/index.d.ts +0 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/exceptions",
3
- "version": "6.95.6",
3
+ "version": "6.95.10",
4
4
  "description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -18,7 +18,7 @@
18
18
  "build:esm": "tsc --build tsconfig.compile.esm.json"
19
19
  },
20
20
  "dependencies": {
21
- "@tsed/schema": "6.95.6",
21
+ "@tsed/schema": "6.95.10",
22
22
  "tslib": "2.2.0"
23
23
  },
24
24
  "devDependencies": {},
@@ -1,6 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class BadMapping extends Exception {
3
- static readonly STATUS = 421;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class BadRequest extends Exception {
3
- static readonly STATUS = 400;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class Conflict extends Exception {
3
- static readonly STATUS = 409;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class ExpectationFailed extends Exception {
3
- static readonly STATUS = 417;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class Forbidden extends Exception {
3
- static readonly STATUS = 403;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class Gone extends Exception {
3
- static readonly STATUS = 410;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,6 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class ImATeapot extends Exception {
3
- static readonly STATUS = 418;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class LengthRequired extends Exception {
3
- static readonly STATUS = 411;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class MethodNotAllowed extends Exception {
3
- static readonly STATUS = 405;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class MisdirectedRequest extends Exception {
3
- static readonly STATUS = 421;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NotAcceptable extends Exception {
3
- static readonly STATUS = 406;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NotFound extends Exception {
3
- static readonly STATUS = 404;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class PaymentRequired extends Exception {
3
- static readonly STATUS = 402;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class PreconditionFailed extends Exception {
3
- static readonly STATUS = 412;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class PreconditionRequired extends Exception {
3
- static readonly STATUS = 428;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class ProxyAuthentificationRequired extends Exception {
3
- static readonly STATUS = 407;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class RequestEntityTooLarge extends Exception {
3
- static readonly STATUS = 413;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class RequestHeaderFieldsTooLarge extends Exception {
3
- static readonly STATUS = 431;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class RequestRangeUnsatisfiable extends Exception {
3
- static readonly STATUS = 416;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class RequestTimeout extends Exception {
3
- static readonly STATUS = 408;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class RequestURITooLong extends Exception {
3
- static readonly STATUS = 414;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class TooManyRequests extends Exception {
3
- static readonly STATUS = 429;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class Unauthorized extends Exception {
3
- static readonly STATUS = 401;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class UnavailableForLegalReasons extends Exception {
3
- static readonly STATUS = 451;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class UnprocessableEntity extends Exception {
3
- static readonly STATUS = 422;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class UnsupportedMediaType extends Exception {
3
- static readonly STATUS = 415;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class UpgradeRequired extends Exception {
3
- static readonly STATUS = 426;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,27 +0,0 @@
1
- export * from "./BadMapping";
2
- export * from "./BadRequest";
3
- export * from "./Conflict";
4
- export * from "./ExpectationFailed";
5
- export * from "./Forbidden";
6
- export * from "./Gone";
7
- export * from "./ImATeapot";
8
- export * from "./LengthRequired";
9
- export * from "./MethodNotAllowed";
10
- export * from "./MisdirectedRequest";
11
- export * from "./NotAcceptable";
12
- export * from "./NotFound";
13
- export * from "./PaymentRequired";
14
- export * from "./PreconditionFailed";
15
- export * from "./PreconditionRequired";
16
- export * from "./ProxyAuthentificationRequired";
17
- export * from "./RequestRangeUnsatisfiable";
18
- export * from "./RequestEntityTooLarge";
19
- export * from "./RequestHeaderFieldsTooLarge";
20
- export * from "./RequestTimeout";
21
- export * from "./RequestURITooLong";
22
- export * from "./TooManyRequests";
23
- export * from "./Unauthorized";
24
- export * from "./UnsupportedMediaType";
25
- export * from "./UpgradeRequired";
26
- export * from "./UnavailableForLegalReasons";
27
- export * from "./UnprocessableEntity";
@@ -1,45 +0,0 @@
1
- export declare class Exception extends Error {
2
- /**
3
- * Exception base name
4
- * @type {string}
5
- */
6
- name: string;
7
- /**
8
- * Message of the exception
9
- */
10
- message: string;
11
- /**
12
- * Exception type
13
- * @type {string}
14
- */
15
- type: string;
16
- /**
17
- * Stack calling
18
- */
19
- stack: string;
20
- origin: Error & any;
21
- /**
22
- * HTTP Code Status
23
- */
24
- status: number;
25
- /**
26
- *
27
- */
28
- body: any;
29
- /**
30
- * Headers must be sent to the response
31
- */
32
- headers: {
33
- [key: string]: any;
34
- };
35
- [key: string]: any;
36
- constructor(status?: number, message?: string, origin?: Error | string | any);
37
- setHeaders(headers: {
38
- [key: string]: any;
39
- }): this;
40
- setHeader(key: string, value: any): this;
41
- setOrigin(origin: Error | string | any): void;
42
- toString(): string;
43
- }
44
- export declare class HTTPException extends Exception {
45
- }
@@ -1 +0,0 @@
1
- export * from "./Exception";
@@ -1,4 +0,0 @@
1
- export * from "./core";
2
- export * from "./clientErrors";
3
- export * from "./redirections";
4
- export * from "./serverErrors";
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class MovedPermanently extends Exception {
3
- static readonly STATUS = 301;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,6 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class MovedTemporarily extends Exception {
3
- static readonly STATUS = 302;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class MultipleChoices extends Exception {
3
- static readonly STATUS = 300;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NotModified extends Exception {
3
- static readonly STATUS = 304;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class PermanentRedirect extends Exception {
3
- static readonly STATUS = 308;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class SeeOther extends Exception {
3
- static readonly STATUS = 303;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class TemporaryRedirect extends Exception {
3
- static readonly STATUS = 307;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class TooManyRedirects extends Exception {
3
- static readonly STATUS = 310;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class UseProxy extends Exception {
3
- static readonly STATUS = 305;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,9 +0,0 @@
1
- export * from "./MovedPermanently";
2
- export * from "./MovedTemporarily";
3
- export * from "./MultipleChoices";
4
- export * from "./NotModified";
5
- export * from "./PermanentRedirect";
6
- export * from "./SeeOther";
7
- export * from "./TemporaryRedirect";
8
- export * from "./TooManyRedirects";
9
- export * from "./UseProxy";
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class BadGateway extends Exception {
3
- static readonly STATUS = 502;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class BandwidthLimitExceeded extends Exception {
3
- static readonly STATUS = 509;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class GatewayTimeout extends Exception {
3
- static readonly STATUS = 504;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class InternalServerError extends Exception {
3
- static readonly STATUS = 500;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NetworkAuthenticationRequired extends Exception {
3
- static readonly STATUS = 511;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NotExtended extends Exception {
3
- static readonly STATUS = 510;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class NotImplemented extends Exception {
3
- static readonly STATUS = 501;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,6 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class ProxyError extends Exception {
3
- static readonly STATUS = 502;
4
- name: string;
5
- constructor(message: string, origin?: Error | string | any);
6
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class ServiceUnvailable extends Exception {
3
- static readonly STATUS = 503;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,5 +0,0 @@
1
- import { Exception } from "../core/Exception";
2
- export declare class VariantAlsoNegotiates extends Exception {
3
- static readonly STATUS = 506;
4
- constructor(message: string, origin?: Error | string | any);
5
- }
@@ -1,10 +0,0 @@
1
- export * from "./BadGateway";
2
- export * from "./GatewayTimeout";
3
- export * from "./InternalServerError";
4
- export * from "./NotImplemented";
5
- export * from "./ProxyError";
6
- export * from "./ServiceUnvailable";
7
- export * from "./NetworkAuthenticationRequired";
8
- export * from "./NotExtended";
9
- export * from "./VariantAlsoNegotiates";
10
- export * from "./BandwidthLimitExceeded";