@tsed/exceptions 7.0.0-beta.2 → 7.0.0-beta.20

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 (220) hide show
  1. package/jest.config.js +14 -0
  2. package/lib/cjs/clientErrors/BadMapping.js +2 -2
  3. package/lib/cjs/clientErrors/BadMapping.js.map +1 -1
  4. package/lib/cjs/clientErrors/BadRequest.js +1 -1
  5. package/lib/cjs/clientErrors/BadRequest.js.map +1 -1
  6. package/lib/cjs/clientErrors/Conflict.js +1 -1
  7. package/lib/cjs/clientErrors/Conflict.js.map +1 -1
  8. package/lib/cjs/clientErrors/ExpectationFailed.js +1 -1
  9. package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -1
  10. package/lib/cjs/clientErrors/Forbidden.js +1 -1
  11. package/lib/cjs/clientErrors/Forbidden.js.map +1 -1
  12. package/lib/cjs/clientErrors/Gone.js +1 -1
  13. package/lib/cjs/clientErrors/Gone.js.map +1 -1
  14. package/lib/cjs/clientErrors/ImATeapot.js +2 -2
  15. package/lib/cjs/clientErrors/ImATeapot.js.map +1 -1
  16. package/lib/cjs/clientErrors/LengthRequired.js +1 -1
  17. package/lib/cjs/clientErrors/LengthRequired.js.map +1 -1
  18. package/lib/cjs/clientErrors/MethodNotAllowed.js +1 -1
  19. package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -1
  20. package/lib/cjs/clientErrors/MisdirectedRequest.js +1 -1
  21. package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -1
  22. package/lib/cjs/clientErrors/NotAcceptable.js +1 -1
  23. package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -1
  24. package/lib/cjs/clientErrors/NotFound.js +1 -1
  25. package/lib/cjs/clientErrors/NotFound.js.map +1 -1
  26. package/lib/cjs/clientErrors/PaymentRequired.js +1 -1
  27. package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -1
  28. package/lib/cjs/clientErrors/PreconditionFailed.js +1 -1
  29. package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -1
  30. package/lib/cjs/clientErrors/PreconditionRequired.js +1 -1
  31. package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -1
  32. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +1 -1
  33. package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
  34. package/lib/cjs/clientErrors/RequestEntityTooLarge.js +1 -1
  35. package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -1
  36. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +1 -1
  37. package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
  38. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +1 -1
  39. package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
  40. package/lib/cjs/clientErrors/RequestTimeout.js +1 -1
  41. package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -1
  42. package/lib/cjs/clientErrors/RequestURITooLong.js +1 -1
  43. package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -1
  44. package/lib/cjs/clientErrors/TooManyRequests.js +1 -1
  45. package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -1
  46. package/lib/cjs/clientErrors/Unauthorized.js +1 -1
  47. package/lib/cjs/clientErrors/Unauthorized.js.map +1 -1
  48. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +1 -1
  49. package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -1
  50. package/lib/cjs/clientErrors/UnprocessableEntity.js +1 -1
  51. package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -1
  52. package/lib/cjs/clientErrors/UnsupportedMediaType.js +1 -1
  53. package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -1
  54. package/lib/cjs/clientErrors/UpgradeRequired.js +1 -1
  55. package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -1
  56. package/lib/cjs/core/Exception.js +38 -16
  57. package/lib/cjs/core/Exception.js.map +1 -1
  58. package/lib/cjs/index.js +49 -4
  59. package/lib/cjs/index.js.map +1 -1
  60. package/lib/cjs/package.json +3 -0
  61. package/lib/cjs/redirections/MovedPermanently.js +1 -1
  62. package/lib/cjs/redirections/MovedPermanently.js.map +1 -1
  63. package/lib/cjs/redirections/MovedTemporarily.js +2 -2
  64. package/lib/cjs/redirections/MovedTemporarily.js.map +1 -1
  65. package/lib/cjs/redirections/MultipleChoices.js +1 -1
  66. package/lib/cjs/redirections/MultipleChoices.js.map +1 -1
  67. package/lib/cjs/redirections/NotModified.js +1 -1
  68. package/lib/cjs/redirections/NotModified.js.map +1 -1
  69. package/lib/cjs/redirections/PermanentRedirect.js +1 -1
  70. package/lib/cjs/redirections/PermanentRedirect.js.map +1 -1
  71. package/lib/cjs/redirections/SeeOther.js +1 -1
  72. package/lib/cjs/redirections/SeeOther.js.map +1 -1
  73. package/lib/cjs/redirections/TemporaryRedirect.js +1 -1
  74. package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -1
  75. package/lib/cjs/redirections/UseProxy.js +1 -1
  76. package/lib/cjs/redirections/UseProxy.js.map +1 -1
  77. package/lib/cjs/serverErrors/BadGateway.js +1 -1
  78. package/lib/cjs/serverErrors/BadGateway.js.map +1 -1
  79. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +1 -1
  80. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -1
  81. package/lib/cjs/serverErrors/GatewayTimeout.js +1 -1
  82. package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -1
  83. package/lib/cjs/serverErrors/InternalServerError.js +1 -1
  84. package/lib/cjs/serverErrors/InternalServerError.js.map +1 -1
  85. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +1 -1
  86. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
  87. package/lib/cjs/serverErrors/NotExtended.js +1 -1
  88. package/lib/cjs/serverErrors/NotExtended.js.map +1 -1
  89. package/lib/cjs/serverErrors/NotImplemented.js +1 -1
  90. package/lib/cjs/serverErrors/NotImplemented.js.map +1 -1
  91. package/lib/cjs/serverErrors/ProxyError.js +2 -2
  92. package/lib/cjs/serverErrors/ProxyError.js.map +1 -1
  93. package/lib/cjs/serverErrors/ServiceUnvailable.js +1 -1
  94. package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -1
  95. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +1 -1
  96. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -1
  97. package/lib/esm/clientErrors/BadMapping.js +3 -3
  98. package/lib/esm/clientErrors/BadMapping.js.map +1 -1
  99. package/lib/esm/clientErrors/BadRequest.js +2 -2
  100. package/lib/esm/clientErrors/BadRequest.js.map +1 -1
  101. package/lib/esm/clientErrors/Conflict.js +2 -2
  102. package/lib/esm/clientErrors/Conflict.js.map +1 -1
  103. package/lib/esm/clientErrors/ExpectationFailed.js +2 -2
  104. package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -1
  105. package/lib/esm/clientErrors/Forbidden.js +2 -2
  106. package/lib/esm/clientErrors/Forbidden.js.map +1 -1
  107. package/lib/esm/clientErrors/Gone.js +2 -2
  108. package/lib/esm/clientErrors/Gone.js.map +1 -1
  109. package/lib/esm/clientErrors/ImATeapot.js +3 -3
  110. package/lib/esm/clientErrors/ImATeapot.js.map +1 -1
  111. package/lib/esm/clientErrors/LengthRequired.js +2 -2
  112. package/lib/esm/clientErrors/LengthRequired.js.map +1 -1
  113. package/lib/esm/clientErrors/MethodNotAllowed.js +2 -2
  114. package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -1
  115. package/lib/esm/clientErrors/MisdirectedRequest.js +2 -2
  116. package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -1
  117. package/lib/esm/clientErrors/NotAcceptable.js +2 -2
  118. package/lib/esm/clientErrors/NotAcceptable.js.map +1 -1
  119. package/lib/esm/clientErrors/NotFound.js +2 -2
  120. package/lib/esm/clientErrors/NotFound.js.map +1 -1
  121. package/lib/esm/clientErrors/PaymentRequired.js +2 -2
  122. package/lib/esm/clientErrors/PaymentRequired.js.map +1 -1
  123. package/lib/esm/clientErrors/PreconditionFailed.js +2 -2
  124. package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -1
  125. package/lib/esm/clientErrors/PreconditionRequired.js +2 -2
  126. package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -1
  127. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +2 -2
  128. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
  129. package/lib/esm/clientErrors/RequestEntityTooLarge.js +2 -2
  130. package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -1
  131. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +2 -2
  132. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
  133. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +2 -2
  134. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
  135. package/lib/esm/clientErrors/RequestTimeout.js +2 -2
  136. package/lib/esm/clientErrors/RequestTimeout.js.map +1 -1
  137. package/lib/esm/clientErrors/RequestURITooLong.js +2 -2
  138. package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -1
  139. package/lib/esm/clientErrors/TooManyRequests.js +2 -2
  140. package/lib/esm/clientErrors/TooManyRequests.js.map +1 -1
  141. package/lib/esm/clientErrors/Unauthorized.js +2 -2
  142. package/lib/esm/clientErrors/Unauthorized.js.map +1 -1
  143. package/lib/esm/clientErrors/UnavailableForLegalReasons.js +2 -2
  144. package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -1
  145. package/lib/esm/clientErrors/UnprocessableEntity.js +2 -2
  146. package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -1
  147. package/lib/esm/clientErrors/UnsupportedMediaType.js +2 -2
  148. package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -1
  149. package/lib/esm/clientErrors/UpgradeRequired.js +2 -2
  150. package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -1
  151. package/lib/esm/core/Exception.js +36 -15
  152. package/lib/esm/core/Exception.js.map +1 -1
  153. package/lib/esm/index.js +49 -4
  154. package/lib/esm/index.js.map +1 -1
  155. package/lib/esm/package.json +3 -0
  156. package/lib/esm/redirections/MovedPermanently.js +2 -2
  157. package/lib/esm/redirections/MovedPermanently.js.map +1 -1
  158. package/lib/esm/redirections/MovedTemporarily.js +3 -3
  159. package/lib/esm/redirections/MovedTemporarily.js.map +1 -1
  160. package/lib/esm/redirections/MultipleChoices.js +2 -2
  161. package/lib/esm/redirections/MultipleChoices.js.map +1 -1
  162. package/lib/esm/redirections/NotModified.js +2 -2
  163. package/lib/esm/redirections/NotModified.js.map +1 -1
  164. package/lib/esm/redirections/PermanentRedirect.js +2 -2
  165. package/lib/esm/redirections/PermanentRedirect.js.map +1 -1
  166. package/lib/esm/redirections/SeeOther.js +2 -2
  167. package/lib/esm/redirections/SeeOther.js.map +1 -1
  168. package/lib/esm/redirections/TemporaryRedirect.js +2 -2
  169. package/lib/esm/redirections/TemporaryRedirect.js.map +1 -1
  170. package/lib/esm/redirections/UseProxy.js +2 -2
  171. package/lib/esm/redirections/UseProxy.js.map +1 -1
  172. package/lib/esm/serverErrors/BadGateway.js +2 -2
  173. package/lib/esm/serverErrors/BadGateway.js.map +1 -1
  174. package/lib/esm/serverErrors/BandwidthLimitExceeded.js +2 -2
  175. package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -1
  176. package/lib/esm/serverErrors/GatewayTimeout.js +2 -2
  177. package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -1
  178. package/lib/esm/serverErrors/InternalServerError.js +2 -2
  179. package/lib/esm/serverErrors/InternalServerError.js.map +1 -1
  180. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +2 -2
  181. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
  182. package/lib/esm/serverErrors/NotExtended.js +2 -2
  183. package/lib/esm/serverErrors/NotExtended.js.map +1 -1
  184. package/lib/esm/serverErrors/NotImplemented.js +2 -2
  185. package/lib/esm/serverErrors/NotImplemented.js.map +1 -1
  186. package/lib/esm/serverErrors/ProxyError.js +3 -3
  187. package/lib/esm/serverErrors/ProxyError.js.map +1 -1
  188. package/lib/esm/serverErrors/ServiceUnvailable.js +2 -2
  189. package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -1
  190. package/lib/esm/serverErrors/VariantAlsoNegotiates.js +2 -2
  191. package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -1
  192. package/lib/types/index.d.ts +49 -4
  193. package/package.json +17 -8
  194. package/readme.md +4 -4
  195. package/tsconfig.compile.esm.json +1 -12
  196. package/lib/cjs/clientErrors/index.js +0 -31
  197. package/lib/cjs/clientErrors/index.js.map +0 -1
  198. package/lib/cjs/core/index.js +0 -5
  199. package/lib/cjs/core/index.js.map +0 -1
  200. package/lib/cjs/redirections/TooManyRedirects.js +0 -12
  201. package/lib/cjs/redirections/TooManyRedirects.js.map +0 -1
  202. package/lib/cjs/redirections/index.js +0 -13
  203. package/lib/cjs/redirections/index.js.map +0 -1
  204. package/lib/cjs/serverErrors/index.js +0 -14
  205. package/lib/cjs/serverErrors/index.js.map +0 -1
  206. package/lib/esm/clientErrors/index.js +0 -28
  207. package/lib/esm/clientErrors/index.js.map +0 -1
  208. package/lib/esm/core/index.js +0 -2
  209. package/lib/esm/core/index.js.map +0 -1
  210. package/lib/esm/redirections/TooManyRedirects.js +0 -8
  211. package/lib/esm/redirections/TooManyRedirects.js.map +0 -1
  212. package/lib/esm/redirections/index.js +0 -10
  213. package/lib/esm/redirections/index.js.map +0 -1
  214. package/lib/esm/serverErrors/index.js +0 -11
  215. package/lib/esm/serverErrors/index.js.map +0 -1
  216. package/lib/types/clientErrors/index.d.ts +0 -27
  217. package/lib/types/core/index.d.ts +0 -1
  218. package/lib/types/redirections/TooManyRedirects.d.ts +0 -5
  219. package/lib/types/redirections/index.d.ts +0 -9
  220. package/lib/types/serverErrors/index.d.ts +0 -10
@@ -1,27 +1,49 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HTTPException = exports.Exception = void 0;
4
- const schema_1 = require("@tsed/schema");
4
+ const tslib_1 = require("tslib");
5
+ const change_case_1 = require("change-case");
6
+ const statuses_1 = tslib_1.__importDefault(require("statuses"));
7
+ function getStatusConstant(status) {
8
+ return status === 200 ? "SUCCESS" : (0, change_case_1.constantCase)(String((0, statuses_1.default)(status)));
9
+ }
5
10
  class Exception extends Error {
11
+ /**
12
+ * Exception base name
13
+ * @type {string}
14
+ */
15
+ name = "HTTP_EXCEPTION";
16
+ /**
17
+ * Message of the exception
18
+ */
19
+ message;
20
+ /**
21
+ * Exception type
22
+ * @type {string}
23
+ */
24
+ type = "HTTP_EXCEPTION";
25
+ /**
26
+ * Stack calling
27
+ */
28
+ stack;
29
+ origin;
30
+ /**
31
+ * HTTP Code Status
32
+ */
33
+ status;
34
+ /**
35
+ *
36
+ */
37
+ body;
38
+ /**
39
+ * Headers must be sent to the response
40
+ */
41
+ headers = {};
6
42
  constructor(status = 500, message = "", origin) {
7
43
  super(message);
8
- /**
9
- * Exception base name
10
- * @type {string}
11
- */
12
- this.name = "HTTP_EXCEPTION";
13
- /**
14
- * Exception type
15
- * @type {string}
16
- */
17
- this.type = "HTTP_EXCEPTION";
18
- /**
19
- * Headers must be sent to the response
20
- */
21
- this.headers = {};
22
44
  this.status = status;
23
45
  this.message = message;
24
- this.name = (0, schema_1.getStatusConstant)(status);
46
+ this.name = getStatusConstant(status);
25
47
  this.setOrigin(origin);
26
48
  }
27
49
  setHeaders(headers) {
@@ -1 +1 @@
1
- {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":";;;AAAA,yCAA+C;AAE/C,MAAa,SAAU,SAAQ,KAAK;IAmClC,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAnCjB;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAKvC;;;WAGG;QACI,SAAI,GAAW,gBAAgB,CAAC;QAcvC;;WAEG;QACI,YAAO,GAAyB,EAAE,CAAC;QAOxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAA,0BAAiB,EAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AA7ED,8BA6EC;AAED,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C","sourcesContent":["import {getStatusConstant} from \"@tsed/schema\";\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
1
+ {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":";;;;AAAA,6CAAyC;AACzC,gEAAgC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,0BAAY,EAAC,MAAM,CAAC,IAAA,kBAAQ,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAa,SAAU,SAAQ,KAAK;IAClC;;;OAGG;IACI,IAAI,GAAW,gBAAgB,CAAC;IACvC;;OAEG;IACI,OAAO,CAAS;IACvB;;;OAGG;IACI,IAAI,GAAW,gBAAgB,CAAC;IACvC;;OAEG;IACI,KAAK,CAAS;IACd,MAAM,CAAc;IAC3B;;OAEG;IACI,MAAM,CAAS;IACtB;;OAEG;IACI,IAAI,CAAM;IACjB;;OAEG;IACI,OAAO,GAAyB,EAAE,CAAC;IAI1C,YAAY,SAAiB,GAAG,EAAE,UAAkB,EAAE,EAAE,MAA6B;QACnF,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,OAA6B;QACtC,IAAI,CAAC,OAAO,GAAG;YACb,GAAG,IAAI,CAAC,OAAO;YACf,GAAG,OAAO;SACX,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,GAAW,EAAE,KAAU;QAC/B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QAE1B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,CAAC,MAA4B;QACpC,IAAI,MAAM,EAAE;YACV,IAAI,MAAM,YAAY,KAAK,EAAE;gBAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;gBACrB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;gBACrC,IAAI,CAAC,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,OAAO,qBAAqB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC;aACjF;iBAAM;gBACL,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;aACpB;SACF;IACH,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC;CACF;AA7ED,8BA6EC;AAED,MAAa,aAAc,SAAQ,SAAS;CAAG;AAA/C,sCAA+C","sourcesContent":["import {constantCase} from \"change-case\";\nimport statuses from \"statuses\";\n\nfunction getStatusConstant(status: number) {\n return status === 200 ? \"SUCCESS\" : constantCase(String(statuses(status)));\n}\n\nexport class Exception extends Error {\n /**\n * Exception base name\n * @type {string}\n */\n public name: string = \"HTTP_EXCEPTION\";\n /**\n * Message of the exception\n */\n public message: string;\n /**\n * Exception type\n * @type {string}\n */\n public type: string = \"HTTP_EXCEPTION\";\n /**\n * Stack calling\n */\n public stack: string;\n public origin: Error & any;\n /**\n * HTTP Code Status\n */\n public status: number;\n /**\n *\n */\n public body: any;\n /**\n * Headers must be sent to the response\n */\n public headers: {[key: string]: any} = {};\n\n [key: string]: any;\n\n constructor(status: number = 500, message: string = \"\", origin?: Error | string | any) {\n super(message);\n\n this.status = status;\n this.message = message;\n this.name = getStatusConstant(status);\n\n this.setOrigin(origin);\n }\n\n setHeaders(headers: {[key: string]: any}) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n\n return this;\n }\n\n setHeader(key: string, value: any) {\n this.headers[key] = value;\n\n return this;\n }\n\n setOrigin(origin: Error | string | any) {\n if (origin) {\n if (origin instanceof Error) {\n this.origin = origin;\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else if (typeof origin === \"string\") {\n this.origin = new Error(origin);\n this.message = `${this.message}, innerException: ${this.origin.message}`.trim();\n } else {\n this.body = origin;\n }\n }\n }\n\n toString() {\n return `${this.name}(${this.status}): ${this.message} `.trim();\n }\n}\n\nexport class HTTPException extends Exception {}\n"]}
package/lib/cjs/index.js CHANGED
@@ -1,8 +1,53 @@
1
1
  "use strict";
2
+ /**
3
+ * @file Automatically generated by barrelsby.
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./core"), exports);
5
- (0, tslib_1.__exportStar)(require("./clientErrors"), exports);
6
- (0, tslib_1.__exportStar)(require("./redirections"), exports);
7
- (0, tslib_1.__exportStar)(require("./serverErrors"), exports);
7
+ tslib_1.__exportStar(require("./clientErrors/BadMapping"), exports);
8
+ tslib_1.__exportStar(require("./clientErrors/BadRequest"), exports);
9
+ tslib_1.__exportStar(require("./clientErrors/Conflict"), exports);
10
+ tslib_1.__exportStar(require("./clientErrors/ExpectationFailed"), exports);
11
+ tslib_1.__exportStar(require("./clientErrors/Forbidden"), exports);
12
+ tslib_1.__exportStar(require("./clientErrors/Gone"), exports);
13
+ tslib_1.__exportStar(require("./clientErrors/ImATeapot"), exports);
14
+ tslib_1.__exportStar(require("./clientErrors/LengthRequired"), exports);
15
+ tslib_1.__exportStar(require("./clientErrors/MethodNotAllowed"), exports);
16
+ tslib_1.__exportStar(require("./clientErrors/MisdirectedRequest"), exports);
17
+ tslib_1.__exportStar(require("./clientErrors/NotAcceptable"), exports);
18
+ tslib_1.__exportStar(require("./clientErrors/NotFound"), exports);
19
+ tslib_1.__exportStar(require("./clientErrors/PaymentRequired"), exports);
20
+ tslib_1.__exportStar(require("./clientErrors/PreconditionFailed"), exports);
21
+ tslib_1.__exportStar(require("./clientErrors/PreconditionRequired"), exports);
22
+ tslib_1.__exportStar(require("./clientErrors/ProxyAuthentificationRequired"), exports);
23
+ tslib_1.__exportStar(require("./clientErrors/RequestEntityTooLarge"), exports);
24
+ tslib_1.__exportStar(require("./clientErrors/RequestHeaderFieldsTooLarge"), exports);
25
+ tslib_1.__exportStar(require("./clientErrors/RequestRangeUnsatisfiable"), exports);
26
+ tslib_1.__exportStar(require("./clientErrors/RequestTimeout"), exports);
27
+ tslib_1.__exportStar(require("./clientErrors/RequestURITooLong"), exports);
28
+ tslib_1.__exportStar(require("./clientErrors/TooManyRequests"), exports);
29
+ tslib_1.__exportStar(require("./clientErrors/Unauthorized"), exports);
30
+ tslib_1.__exportStar(require("./clientErrors/UnavailableForLegalReasons"), exports);
31
+ tslib_1.__exportStar(require("./clientErrors/UnprocessableEntity"), exports);
32
+ tslib_1.__exportStar(require("./clientErrors/UnsupportedMediaType"), exports);
33
+ tslib_1.__exportStar(require("./clientErrors/UpgradeRequired"), exports);
34
+ tslib_1.__exportStar(require("./core/Exception"), exports);
35
+ tslib_1.__exportStar(require("./redirections/MovedPermanently"), exports);
36
+ tslib_1.__exportStar(require("./redirections/MovedTemporarily"), exports);
37
+ tslib_1.__exportStar(require("./redirections/MultipleChoices"), exports);
38
+ tslib_1.__exportStar(require("./redirections/NotModified"), exports);
39
+ tslib_1.__exportStar(require("./redirections/PermanentRedirect"), exports);
40
+ tslib_1.__exportStar(require("./redirections/SeeOther"), exports);
41
+ tslib_1.__exportStar(require("./redirections/TemporaryRedirect"), exports);
42
+ tslib_1.__exportStar(require("./redirections/UseProxy"), exports);
43
+ tslib_1.__exportStar(require("./serverErrors/BadGateway"), exports);
44
+ tslib_1.__exportStar(require("./serverErrors/BandwidthLimitExceeded"), exports);
45
+ tslib_1.__exportStar(require("./serverErrors/GatewayTimeout"), exports);
46
+ tslib_1.__exportStar(require("./serverErrors/InternalServerError"), exports);
47
+ tslib_1.__exportStar(require("./serverErrors/NetworkAuthenticationRequired"), exports);
48
+ tslib_1.__exportStar(require("./serverErrors/NotExtended"), exports);
49
+ tslib_1.__exportStar(require("./serverErrors/NotImplemented"), exports);
50
+ tslib_1.__exportStar(require("./serverErrors/ProxyError"), exports);
51
+ tslib_1.__exportStar(require("./serverErrors/ServiceUnvailable"), exports);
52
+ tslib_1.__exportStar(require("./serverErrors/VariantAlsoNegotiates"), exports);
8
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sDAAuB;AACvB,8DAA+B;AAC/B,8DAA+B;AAC/B,8DAA+B","sourcesContent":["export * from \"./core\";\nexport * from \"./clientErrors\";\nexport * from \"./redirections\";\nexport * from \"./serverErrors\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA0C;AAC1C,oEAA0C;AAC1C,kEAAwC;AACxC,2EAAiD;AACjD,mEAAyC;AACzC,8DAAoC;AACpC,mEAAyC;AACzC,wEAA8C;AAC9C,0EAAgD;AAChD,4EAAkD;AAClD,uEAA6C;AAC7C,kEAAwC;AACxC,yEAA+C;AAC/C,4EAAkD;AAClD,8EAAoD;AACpD,uFAA6D;AAC7D,+EAAqD;AACrD,qFAA2D;AAC3D,mFAAyD;AACzD,wEAA8C;AAC9C,2EAAiD;AACjD,yEAA+C;AAC/C,sEAA4C;AAC5C,oFAA0D;AAC1D,6EAAmD;AACnD,8EAAoD;AACpD,yEAA+C;AAC/C,2DAAiC;AACjC,0EAAgD;AAChD,0EAAgD;AAChD,yEAA+C;AAC/C,qEAA2C;AAC3C,2EAAiD;AACjD,kEAAwC;AACxC,2EAAiD;AACjD,kEAAwC;AACxC,oEAA0C;AAC1C,gFAAsD;AACtD,wEAA8C;AAC9C,6EAAmD;AACnD,uFAA6D;AAC7D,qEAA2C;AAC3C,wEAA8C;AAC9C,oEAA0C;AAC1C,2EAAiD;AACjD,+EAAqD","sourcesContent":["/**\n * @file Automatically generated by barrelsby.\n */\n\nexport * from \"./clientErrors/BadMapping\";\nexport * from \"./clientErrors/BadRequest\";\nexport * from \"./clientErrors/Conflict\";\nexport * from \"./clientErrors/ExpectationFailed\";\nexport * from \"./clientErrors/Forbidden\";\nexport * from \"./clientErrors/Gone\";\nexport * from \"./clientErrors/ImATeapot\";\nexport * from \"./clientErrors/LengthRequired\";\nexport * from \"./clientErrors/MethodNotAllowed\";\nexport * from \"./clientErrors/MisdirectedRequest\";\nexport * from \"./clientErrors/NotAcceptable\";\nexport * from \"./clientErrors/NotFound\";\nexport * from \"./clientErrors/PaymentRequired\";\nexport * from \"./clientErrors/PreconditionFailed\";\nexport * from \"./clientErrors/PreconditionRequired\";\nexport * from \"./clientErrors/ProxyAuthentificationRequired\";\nexport * from \"./clientErrors/RequestEntityTooLarge\";\nexport * from \"./clientErrors/RequestHeaderFieldsTooLarge\";\nexport * from \"./clientErrors/RequestRangeUnsatisfiable\";\nexport * from \"./clientErrors/RequestTimeout\";\nexport * from \"./clientErrors/RequestURITooLong\";\nexport * from \"./clientErrors/TooManyRequests\";\nexport * from \"./clientErrors/Unauthorized\";\nexport * from \"./clientErrors/UnavailableForLegalReasons\";\nexport * from \"./clientErrors/UnprocessableEntity\";\nexport * from \"./clientErrors/UnsupportedMediaType\";\nexport * from \"./clientErrors/UpgradeRequired\";\nexport * from \"./core/Exception\";\nexport * from \"./redirections/MovedPermanently\";\nexport * from \"./redirections/MovedTemporarily\";\nexport * from \"./redirections/MultipleChoices\";\nexport * from \"./redirections/NotModified\";\nexport * from \"./redirections/PermanentRedirect\";\nexport * from \"./redirections/SeeOther\";\nexport * from \"./redirections/TemporaryRedirect\";\nexport * from \"./redirections/UseProxy\";\nexport * from \"./serverErrors/BadGateway\";\nexport * from \"./serverErrors/BandwidthLimitExceeded\";\nexport * from \"./serverErrors/GatewayTimeout\";\nexport * from \"./serverErrors/InternalServerError\";\nexport * from \"./serverErrors/NetworkAuthenticationRequired\";\nexport * from \"./serverErrors/NotExtended\";\nexport * from \"./serverErrors/NotImplemented\";\nexport * from \"./serverErrors/ProxyError\";\nexport * from \"./serverErrors/ServiceUnvailable\";\nexport * from \"./serverErrors/VariantAlsoNegotiates\";\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MovedPermanently = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class MovedPermanently extends Exception_1.Exception {
6
+ static STATUS = 301;
6
7
  constructor(message, origin) {
7
8
  super(MovedPermanently.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.MovedPermanently = MovedPermanently;
11
- MovedPermanently.STATUS = 301;
12
12
  //# sourceMappingURL=MovedPermanently.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC;AALiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedPermanently extends Exception {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAC7C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedPermanently extends Exception {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n"]}
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MovedTemporarily = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class MovedTemporarily extends Exception_1.Exception {
6
+ static STATUS = 302;
7
+ name = "MOVED_TEMPORARILY";
6
8
  constructor(message, origin) {
7
9
  super(MovedTemporarily.STATUS, message, origin);
8
- this.name = "MOVED_TEMPORARILY";
9
10
  }
10
11
  }
11
12
  exports.MovedTemporarily = MovedTemporarily;
12
- MovedTemporarily.STATUS = 302;
13
13
  //# sourceMappingURL=MovedTemporarily.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAI7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAHlD,SAAI,GAAW,mBAAmB,CAAC;IAInC,CAAC;;AANH,4CAOC;AANiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAC7C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAC7B,IAAI,GAAW,mBAAmB,CAAC;IAEnC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AANH,4CAOC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MultipleChoices = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class MultipleChoices extends Exception_1.Exception {
6
+ static STATUS = 300;
6
7
  constructor(message, origin) {
7
8
  super(MultipleChoices.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.MultipleChoices = MultipleChoices;
11
- MultipleChoices.STATUS = 300;
12
12
  //# sourceMappingURL=MultipleChoices.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,eAAgB,SAAQ,qBAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC;AALiB,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MultipleChoices extends Exception {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,eAAgB,SAAQ,qBAAS;IAC5C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MultipleChoices extends Exception {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotModified = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class NotModified extends Exception_1.Exception {
6
+ static STATUS = 304;
6
7
  constructor(message, origin) {
7
8
  super(NotModified.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.NotModified = NotModified;
11
- NotModified.STATUS = 304;
12
12
  //# sourceMappingURL=NotModified.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC;AALiB,kBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotModified extends Exception {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IACxC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotModified extends Exception {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PermanentRedirect = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class PermanentRedirect extends Exception_1.Exception {
6
+ static STATUS = 308;
6
7
  constructor(message, origin) {
7
8
  super(PermanentRedirect.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.PermanentRedirect = PermanentRedirect;
11
- PermanentRedirect.STATUS = 308;
12
12
  //# sourceMappingURL=PermanentRedirect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PermanentRedirect extends Exception {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PermanentRedirect extends Exception {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SeeOther = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class SeeOther extends Exception_1.Exception {
6
+ static STATUS = 303;
6
7
  constructor(message, origin) {
7
8
  super(SeeOther.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.SeeOther = SeeOther;
11
- SeeOther.STATUS = 303;
12
12
  //# sourceMappingURL=SeeOther.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class SeeOther extends Exception {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class SeeOther extends Exception {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TemporaryRedirect = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class TemporaryRedirect extends Exception_1.Exception {
6
+ static STATUS = 307;
6
7
  constructor(message, origin) {
7
8
  super(TemporaryRedirect.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.TemporaryRedirect = TemporaryRedirect;
11
- TemporaryRedirect.STATUS = 307;
12
12
  //# sourceMappingURL=TemporaryRedirect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TemporaryRedirect extends Exception {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TemporaryRedirect extends Exception {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UseProxy = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class UseProxy extends Exception_1.Exception {
6
+ static STATUS = 305;
6
7
  constructor(message, origin) {
7
8
  super(UseProxy.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.UseProxy = UseProxy;
11
- UseProxy.STATUS = 305;
12
12
  //# sourceMappingURL=UseProxy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UseProxy extends Exception {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UseProxy extends Exception {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BadGateway = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class BadGateway extends Exception_1.Exception {
6
+ static STATUS = 502;
6
7
  constructor(message, origin) {
7
8
  super(BadGateway.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.BadGateway = BadGateway;
11
- BadGateway.STATUS = 502;
12
12
  //# sourceMappingURL=BadGateway.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AALH,gCAMC;AALiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadGateway extends Exception {\n static readonly STATUS = 502;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadGateway.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IACvC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AALH,gCAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadGateway extends Exception {\n static readonly STATUS = 502;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadGateway.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BandwidthLimitExceeded = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class BandwidthLimitExceeded extends Exception_1.Exception {
6
+ static STATUS = 509;
6
7
  constructor(message, origin) {
7
8
  super(BandwidthLimitExceeded.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.BandwidthLimitExceeded = BandwidthLimitExceeded;
11
- BandwidthLimitExceeded.STATUS = 509;
12
12
  //# sourceMappingURL=BandwidthLimitExceeded.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,sBAAuB,SAAQ,qBAAS;IAGnD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;AALH,wDAMC;AALiB,6BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BandwidthLimitExceeded extends Exception {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,sBAAuB,SAAQ,qBAAS;IACnD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;AALH,wDAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BandwidthLimitExceeded extends Exception {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GatewayTimeout = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class GatewayTimeout extends Exception_1.Exception {
6
+ static STATUS = 504;
6
7
  constructor(message, origin) {
7
8
  super(GatewayTimeout.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.GatewayTimeout = GatewayTimeout;
11
- GatewayTimeout.STATUS = 504;
12
12
  //# sourceMappingURL=GatewayTimeout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayTimeout.js","sourceRoot":"","sources":["../../../src/serverErrors/GatewayTimeout.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class GatewayTimeout extends Exception {\n static readonly STATUS = 504;\n\n constructor(message: string, origin?: Error | string | any) {\n super(GatewayTimeout.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"GatewayTimeout.js","sourceRoot":"","sources":["../../../src/serverErrors/GatewayTimeout.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAC3C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class GatewayTimeout extends Exception {\n static readonly STATUS = 504;\n\n constructor(message: string, origin?: Error | string | any) {\n super(GatewayTimeout.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InternalServerError = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class InternalServerError extends Exception_1.Exception {
6
+ static STATUS = 500;
6
7
  constructor(message, origin) {
7
8
  super(InternalServerError.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.InternalServerError = InternalServerError;
11
- InternalServerError.STATUS = 500;
12
12
  //# sourceMappingURL=InternalServerError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalServerError.js","sourceRoot":"","sources":["../../../src/serverErrors/InternalServerError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,mBAAoB,SAAQ,qBAAS;IAGhD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AALH,kDAMC;AALiB,0BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class InternalServerError extends Exception {\n static readonly STATUS = 500;\n\n constructor(message: string, origin?: Error | string | any) {\n super(InternalServerError.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"InternalServerError.js","sourceRoot":"","sources":["../../../src/serverErrors/InternalServerError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,mBAAoB,SAAQ,qBAAS;IAChD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AALH,kDAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class InternalServerError extends Exception {\n static readonly STATUS = 500;\n\n constructor(message: string, origin?: Error | string | any) {\n super(InternalServerError.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NetworkAuthenticationRequired = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class NetworkAuthenticationRequired extends Exception_1.Exception {
6
+ static STATUS = 511;
6
7
  constructor(message, origin) {
7
8
  super(NetworkAuthenticationRequired.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.NetworkAuthenticationRequired = NetworkAuthenticationRequired;
11
- NetworkAuthenticationRequired.STATUS = 511;
12
12
  //# sourceMappingURL=NetworkAuthenticationRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkAuthenticationRequired.js","sourceRoot":"","sources":["../../../src/serverErrors/NetworkAuthenticationRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,6BAA8B,SAAQ,qBAAS;IAG1D,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AALH,sEAMC;AALiB,oCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NetworkAuthenticationRequired extends Exception {\n static readonly STATUS = 511;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NetworkAuthenticationRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NetworkAuthenticationRequired.js","sourceRoot":"","sources":["../../../src/serverErrors/NetworkAuthenticationRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,6BAA8B,SAAQ,qBAAS;IAC1D,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AALH,sEAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NetworkAuthenticationRequired extends Exception {\n static readonly STATUS = 511;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NetworkAuthenticationRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotExtended = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class NotExtended extends Exception_1.Exception {
6
+ static STATUS = 510;
6
7
  constructor(message, origin) {
7
8
  super(NotExtended.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.NotExtended = NotExtended;
11
- NotExtended.STATUS = 510;
12
12
  //# sourceMappingURL=NotExtended.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotExtended.js","sourceRoot":"","sources":["../../../src/serverErrors/NotExtended.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC;AALiB,kBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotExtended extends Exception {\n static readonly STATUS = 510;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotExtended.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NotExtended.js","sourceRoot":"","sources":["../../../src/serverErrors/NotExtended.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,WAAY,SAAQ,qBAAS;IACxC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AALH,kCAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotExtended extends Exception {\n static readonly STATUS = 510;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotExtended.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotImplemented = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class NotImplemented extends Exception_1.Exception {
6
+ static STATUS = 501;
6
7
  constructor(message, origin) {
7
8
  super(NotImplemented.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.NotImplemented = NotImplemented;
11
- NotImplemented.STATUS = 501;
12
12
  //# sourceMappingURL=NotImplemented.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotImplemented.js","sourceRoot":"","sources":["../../../src/serverErrors/NotImplemented.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotImplemented extends Exception {\n static readonly STATUS = 501;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotImplemented.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NotImplemented.js","sourceRoot":"","sources":["../../../src/serverErrors/NotImplemented.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAC3C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotImplemented extends Exception {\n static readonly STATUS = 501;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotImplemented.STATUS, message, origin);\n }\n}\n"]}
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProxyError = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class ProxyError extends Exception_1.Exception {
6
+ static STATUS = 502;
7
+ name = "PROXY_ERROR";
6
8
  constructor(message, origin) {
7
9
  super(ProxyError.STATUS, message, origin);
8
- this.name = "PROXY_ERROR";
9
10
  }
10
11
  }
11
12
  exports.ProxyError = ProxyError;
12
- ProxyError.STATUS = 502;
13
13
  //# sourceMappingURL=ProxyError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProxyError.js","sourceRoot":"","sources":["../../../src/serverErrors/ProxyError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAIvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH5C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AANH,gCAOC;AANiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyError extends Exception {\n static readonly STATUS = 502;\n name: string = \"PROXY_ERROR\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyError.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"ProxyError.js","sourceRoot":"","sources":["../../../src/serverErrors/ProxyError.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IACvC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAC7B,IAAI,GAAW,aAAa,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AANH,gCAOC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyError extends Exception {\n static readonly STATUS = 502;\n name: string = \"PROXY_ERROR\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyError.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServiceUnvailable = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class ServiceUnvailable extends Exception_1.Exception {
6
+ static STATUS = 503;
6
7
  constructor(message, origin) {
7
8
  super(ServiceUnvailable.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.ServiceUnvailable = ServiceUnvailable;
11
- ServiceUnvailable.STATUS = 503;
12
12
  //# sourceMappingURL=ServiceUnvailable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ServiceUnvailable extends Exception {\n static readonly STATUS = 503;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ServiceUnvailable.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ServiceUnvailable extends Exception {\n static readonly STATUS = 503;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ServiceUnvailable.STATUS, message, origin);\n }\n}\n"]}
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VariantAlsoNegotiates = void 0;
4
4
  const Exception_1 = require("../core/Exception");
5
5
  class VariantAlsoNegotiates extends Exception_1.Exception {
6
+ static STATUS = 506;
6
7
  constructor(message, origin) {
7
8
  super(VariantAlsoNegotiates.STATUS, message, origin);
8
9
  }
9
10
  }
10
11
  exports.VariantAlsoNegotiates = VariantAlsoNegotiates;
11
- VariantAlsoNegotiates.STATUS = 506;
12
12
  //# sourceMappingURL=VariantAlsoNegotiates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VariantAlsoNegotiates.js","sourceRoot":"","sources":["../../../src/serverErrors/VariantAlsoNegotiates.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,qBAAsB,SAAQ,qBAAS;IAGlD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AALH,sDAMC;AALiB,4BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class VariantAlsoNegotiates extends Exception {\n static readonly STATUS = 506;\n\n constructor(message: string, origin?: Error | string | any) {\n super(VariantAlsoNegotiates.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"VariantAlsoNegotiates.js","sourceRoot":"","sources":["../../../src/serverErrors/VariantAlsoNegotiates.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,qBAAsB,SAAQ,qBAAS;IAClD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AALH,sDAMC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class VariantAlsoNegotiates extends Exception {\n static readonly STATUS = 506;\n\n constructor(message: string, origin?: Error | string | any) {\n super(VariantAlsoNegotiates.STATUS, message, origin);\n }\n}\n"]}
@@ -1,9 +1,9 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BadMapping extends Exception {
3
+ static STATUS = 421;
4
+ name = "BAD_MAPPING";
3
5
  constructor(message, origin) {
4
6
  super(BadMapping.STATUS, message, origin);
5
- this.name = "BAD_MAPPING";
6
7
  }
7
8
  }
8
- BadMapping.STATUS = 421;
9
9
  //# sourceMappingURL=BadMapping.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadMapping.js","sourceRoot":"","sources":["../../../src/clientErrors/BadMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAIvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH5C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AALe,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadMapping extends Exception {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"BadMapping.js","sourceRoot":"","sources":["../../../src/clientErrors/BadMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAC7B,IAAI,GAAW,aAAa,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadMapping extends Exception {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class BadRequest extends Exception {
3
+ static STATUS = 400;
3
4
  constructor(message, origin) {
4
5
  super(BadRequest.STATUS, message, origin);
5
6
  }
6
7
  }
7
- BadRequest.STATUS = 400;
8
8
  //# sourceMappingURL=BadRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BadRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/BadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AAJe,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadRequest extends Exception {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"BadRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/BadRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadRequest extends Exception {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class Conflict extends Exception {
3
+ static STATUS = 409;
3
4
  constructor(message, origin) {
4
5
  super(Conflict.STATUS, message, origin);
5
6
  }
6
7
  }
7
- Conflict.STATUS = 409;
8
8
  //# sourceMappingURL=Conflict.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Conflict.js","sourceRoot":"","sources":["../../../src/clientErrors/Conflict.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AAJe,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Conflict extends Exception {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"Conflict.js","sourceRoot":"","sources":["../../../src/clientErrors/Conflict.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Conflict extends Exception {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n"]}
@@ -1,8 +1,8 @@
1
- import { Exception } from "../core/Exception";
1
+ import { Exception } from "../core/Exception.js";
2
2
  export class ExpectationFailed extends Exception {
3
+ static STATUS = 417;
3
4
  constructor(message, origin) {
4
5
  super(ExpectationFailed.STATUS, message, origin);
5
6
  }
6
7
  }
7
- ExpectationFailed.STATUS = 417;
8
8
  //# sourceMappingURL=ExpectationFailed.js.map