@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 +1 @@
1
- {"version":3,"file":"ExpectationFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/ExpectationFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ExpectationFailed extends Exception {\n static readonly STATUS = 417;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ExpectationFailed.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"ExpectationFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/ExpectationFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ExpectationFailed extends Exception {\n static readonly STATUS = 417;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ExpectationFailed.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 Forbidden extends Exception {
3
+ static STATUS = 403;
3
4
  constructor(message, origin) {
4
5
  super(Forbidden.STATUS, message, origin);
5
6
  }
6
7
  }
7
- Forbidden.STATUS = 403;
8
8
  //# sourceMappingURL=Forbidden.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Forbidden.js","sourceRoot":"","sources":["../../../src/clientErrors/Forbidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAGtC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;;AAJe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Forbidden extends Exception {\n static readonly STATUS = 403;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Forbidden.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"Forbidden.js","sourceRoot":"","sources":["../../../src/clientErrors/Forbidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Forbidden extends Exception {\n static readonly STATUS = 403;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Forbidden.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 Gone extends Exception {
3
+ static STATUS = 410;
3
4
  constructor(message, origin) {
4
5
  super(Gone.STATUS, message, origin);
5
6
  }
6
7
  }
7
- Gone.STATUS = 410;
8
8
  //# sourceMappingURL=Gone.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gone.js","sourceRoot":"","sources":["../../../src/clientErrors/Gone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,IAAK,SAAQ,SAAS;IAGjC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,WAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Gone extends Exception {\n static readonly STATUS = 410;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Gone.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"Gone.js","sourceRoot":"","sources":["../../../src/clientErrors/Gone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Gone extends Exception {\n static readonly STATUS = 410;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Gone.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 ImATeapot extends Exception {
3
+ static STATUS = 418;
4
+ name = "IM_A_TEAPOT";
3
5
  constructor(message, origin) {
4
6
  super(ImATeapot.STATUS, message, origin);
5
- this.name = "IM_A_TEAPOT";
6
7
  }
7
8
  }
8
- ImATeapot.STATUS = 418;
9
9
  //# sourceMappingURL=ImATeapot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ImATeapot.js","sourceRoot":"","sources":["../../../src/clientErrors/ImATeapot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IAItC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH3C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AALe,gBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ImATeapot extends Exception {\n static readonly STATUS = 418;\n name: string = \"IM_A_TEAPOT\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ImATeapot.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"ImATeapot.js","sourceRoot":"","sources":["../../../src/clientErrors/ImATeapot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAC7B,IAAI,GAAW,aAAa,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ImATeapot extends Exception {\n static readonly STATUS = 418;\n name: string = \"IM_A_TEAPOT\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(ImATeapot.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 LengthRequired extends Exception {
3
+ static STATUS = 411;
3
4
  constructor(message, origin) {
4
5
  super(LengthRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- LengthRequired.STATUS = 411;
8
8
  //# sourceMappingURL=LengthRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LengthRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/LengthRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AAJe,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class LengthRequired extends Exception {\n static readonly STATUS = 411;\n\n constructor(message: string, origin?: Error | string | any) {\n super(LengthRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"LengthRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/LengthRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class LengthRequired extends Exception {\n static readonly STATUS = 411;\n\n constructor(message: string, origin?: Error | string | any) {\n super(LengthRequired.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 MethodNotAllowed extends Exception {
3
+ static STATUS = 405;
3
4
  constructor(message, origin) {
4
5
  super(MethodNotAllowed.STATUS, message, origin);
5
6
  }
6
7
  }
7
- MethodNotAllowed.STATUS = 405;
8
8
  //# sourceMappingURL=MethodNotAllowed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MethodNotAllowed.js","sourceRoot":"","sources":["../../../src/clientErrors/MethodNotAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AAJe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MethodNotAllowed extends Exception {\n static readonly STATUS = 405;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MethodNotAllowed.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"MethodNotAllowed.js","sourceRoot":"","sources":["../../../src/clientErrors/MethodNotAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MethodNotAllowed extends Exception {\n static readonly STATUS = 405;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MethodNotAllowed.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 MisdirectedRequest extends Exception {
3
+ static STATUS = 421;
3
4
  constructor(message, origin) {
4
5
  super(MisdirectedRequest.STATUS, message, origin);
5
6
  }
6
7
  }
7
- MisdirectedRequest.STATUS = 421;
8
8
  //# sourceMappingURL=MisdirectedRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MisdirectedRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/MisdirectedRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AAJe,yBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MisdirectedRequest extends Exception {\n static readonly STATUS = 421;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MisdirectedRequest.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"MisdirectedRequest.js","sourceRoot":"","sources":["../../../src/clientErrors/MisdirectedRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MisdirectedRequest extends Exception {\n static readonly STATUS = 421;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MisdirectedRequest.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 NotAcceptable extends Exception {
3
+ static STATUS = 406;
3
4
  constructor(message, origin = "You must accept content-type " + message) {
4
5
  super(NotAcceptable.STATUS, origin);
5
6
  }
6
7
  }
7
- NotAcceptable.STATUS = 406;
8
8
  //# sourceMappingURL=NotAcceptable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotAcceptable.js","sourceRoot":"","sources":["../../../src/clientErrors/NotAcceptable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAG1C,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AAJe,oBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotAcceptable extends Exception {\n static readonly STATUS = 406;\n\n constructor(message: string, origin: Error | string | any = \"You must accept content-type \" + message) {\n super(NotAcceptable.STATUS, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NotAcceptable.js","sourceRoot":"","sources":["../../../src/clientErrors/NotAcceptable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class NotAcceptable extends Exception {\n static readonly STATUS = 406;\n\n constructor(message: string, origin: Error | string | any = \"You must accept content-type \" + message) {\n super(NotAcceptable.STATUS, 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 NotFound extends Exception {
3
+ static STATUS = 404;
3
4
  constructor(message, origin) {
4
5
  super(NotFound.STATUS, message, origin);
5
6
  }
6
7
  }
7
- NotFound.STATUS = 404;
8
8
  //# sourceMappingURL=NotFound.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../src/clientErrors/NotFound.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 NotFound extends Exception {\n static readonly STATUS = 404;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotFound.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../../src/clientErrors/NotFound.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 NotFound extends Exception {\n static readonly STATUS = 404;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotFound.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 PaymentRequired extends Exception {
3
+ static STATUS = 402;
3
4
  constructor(message, origin) {
4
5
  super(PaymentRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- PaymentRequired.STATUS = 402;
8
8
  //# sourceMappingURL=PaymentRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PaymentRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PaymentRequired extends Exception {\n static readonly STATUS = 402;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PaymentRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PaymentRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PaymentRequired extends Exception {\n static readonly STATUS = 402;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PaymentRequired.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 PreconditionFailed extends Exception {
3
+ static STATUS = 412;
3
4
  constructor(message, origin) {
4
5
  super(PreconditionFailed.STATUS, message, origin);
5
6
  }
6
7
  }
7
- PreconditionFailed.STATUS = 412;
8
8
  //# sourceMappingURL=PreconditionFailed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AAJe,yBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionFailed extends Exception {\n static readonly STATUS = 412;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionFailed.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionFailed extends Exception {\n static readonly STATUS = 412;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionFailed.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 PreconditionRequired extends Exception {
3
+ static STATUS = 428;
3
4
  constructor(message, origin) {
4
5
  super(PreconditionRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- PreconditionRequired.STATUS = 428;
8
8
  //# sourceMappingURL=PreconditionRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IAGjD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;;AAJe,2BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionRequired extends Exception {\n static readonly STATUS = 428;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class PreconditionRequired extends Exception {\n static readonly STATUS = 428;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PreconditionRequired.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 ProxyAuthentificationRequired extends Exception {
3
+ static STATUS = 407;
3
4
  constructor(message, origin) {
4
5
  super(ProxyAuthentificationRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- ProxyAuthentificationRequired.STATUS = 407;
8
8
  //# sourceMappingURL=ProxyAuthentificationRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,6BAA8B,SAAQ,SAAS;IAG1D,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AAJe,oCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyAuthentificationRequired extends Exception {\n static readonly STATUS = 407;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyAuthentificationRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,6BAA8B,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class ProxyAuthentificationRequired extends Exception {\n static readonly STATUS = 407;\n\n constructor(message: string, origin?: Error | string | any) {\n super(ProxyAuthentificationRequired.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 RequestEntityTooLarge extends Exception {
3
+ static STATUS = 413;
3
4
  constructor(message, origin) {
4
5
  super(RequestEntityTooLarge.STATUS, message, origin);
5
6
  }
6
7
  }
7
- RequestEntityTooLarge.STATUS = 413;
8
8
  //# sourceMappingURL=RequestEntityTooLarge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAGlD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AAJe,4BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestEntityTooLarge extends Exception {\n static readonly STATUS = 413;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestEntityTooLarge.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestEntityTooLarge extends Exception {\n static readonly STATUS = 413;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestEntityTooLarge.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 RequestHeaderFieldsTooLarge extends Exception {
3
+ static STATUS = 431;
3
4
  constructor(message, origin) {
4
5
  super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
5
6
  }
6
7
  }
7
- RequestHeaderFieldsTooLarge.STATUS = 431;
8
8
  //# sourceMappingURL=RequestHeaderFieldsTooLarge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,SAAS;IAGxD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;;AAJe,kCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestHeaderFieldsTooLarge extends Exception {\n static readonly STATUS = 431;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestHeaderFieldsTooLarge.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,2BAA4B,SAAQ,SAAS;IACxD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestHeaderFieldsTooLarge extends Exception {\n static readonly STATUS = 431;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestHeaderFieldsTooLarge.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 RequestRangeUnsatisfiable extends Exception {
3
+ static STATUS = 416;
3
4
  constructor(message, origin) {
4
5
  super(RequestRangeUnsatisfiable.STATUS, message, origin);
5
6
  }
6
7
  }
7
- RequestRangeUnsatisfiable.STATUS = 416;
8
8
  //# sourceMappingURL=RequestRangeUnsatisfiable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,SAAS;IAGtD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;;AAJe,gCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestRangeUnsatisfiable extends Exception {\n static readonly STATUS = 416;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestRangeUnsatisfiable.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,yBAA0B,SAAQ,SAAS;IACtD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestRangeUnsatisfiable extends Exception {\n static readonly STATUS = 416;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestRangeUnsatisfiable.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 RequestTimeout extends Exception {
3
+ static STATUS = 408;
3
4
  constructor(message, origin) {
4
5
  super(RequestTimeout.STATUS, message, origin);
5
6
  }
6
7
  }
7
- RequestTimeout.STATUS = 408;
8
8
  //# sourceMappingURL=RequestTimeout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AAJe,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestTimeout extends Exception {\n static readonly STATUS = 408;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestTimeout.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,cAAe,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestTimeout extends Exception {\n static readonly STATUS = 408;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestTimeout.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 RequestURITooLong extends Exception {
3
+ static STATUS = 414;
3
4
  constructor(message, origin) {
4
5
  super(RequestURITooLong.STATUS, message, origin);
5
6
  }
6
7
  }
7
- RequestURITooLong.STATUS = 414;
8
8
  //# sourceMappingURL=RequestURITooLong.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AAJe,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestURITooLong extends Exception {\n static readonly STATUS = 414;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestURITooLong.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class RequestURITooLong extends Exception {\n static readonly STATUS = 414;\n\n constructor(message: string, origin?: Error | string | any) {\n super(RequestURITooLong.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 TooManyRequests extends Exception {
3
+ static STATUS = 429;
3
4
  constructor(message, origin) {
4
5
  super(TooManyRequests.STATUS, message, origin);
5
6
  }
6
7
  }
7
- TooManyRequests.STATUS = 429;
8
8
  //# sourceMappingURL=TooManyRequests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRequests extends Exception {\n static readonly STATUS = 429;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRequests.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class TooManyRequests extends Exception {\n static readonly STATUS = 429;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRequests.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 Unauthorized extends Exception {
3
+ static STATUS = 401;
3
4
  constructor(message, origin) {
4
5
  super(Unauthorized.STATUS, message, origin);
5
6
  }
6
7
  }
7
- Unauthorized.STATUS = 401;
8
8
  //# sourceMappingURL=Unauthorized.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IAGzC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;;AAJe,mBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Unauthorized extends Exception {\n static readonly STATUS = 401;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Unauthorized.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Unauthorized extends Exception {\n static readonly STATUS = 401;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Unauthorized.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 UnavailableForLegalReasons extends Exception {
3
+ static STATUS = 451;
3
4
  constructor(message, origin) {
4
5
  super(UnavailableForLegalReasons.STATUS, message, origin);
5
6
  }
6
7
  }
7
- UnavailableForLegalReasons.STATUS = 451;
8
8
  //# sourceMappingURL=UnavailableForLegalReasons.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnavailableForLegalReasons.js","sourceRoot":"","sources":["../../../src/clientErrors/UnavailableForLegalReasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IAGvD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;;AAJe,iCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnavailableForLegalReasons extends Exception {\n static readonly STATUS = 451;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnavailableForLegalReasons.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"UnavailableForLegalReasons.js","sourceRoot":"","sources":["../../../src/clientErrors/UnavailableForLegalReasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,0BAA2B,SAAQ,SAAS;IACvD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,0BAA0B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnavailableForLegalReasons extends Exception {\n static readonly STATUS = 451;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnavailableForLegalReasons.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 UnprocessableEntity extends Exception {
3
+ static STATUS = 422;
3
4
  constructor(message, origin) {
4
5
  super(UnprocessableEntity.STATUS, message, origin);
5
6
  }
6
7
  }
7
- UnprocessableEntity.STATUS = 422;
8
8
  //# sourceMappingURL=UnprocessableEntity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnprocessableEntity.js","sourceRoot":"","sources":["../../../src/clientErrors/UnprocessableEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAGhD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;;AAJe,0BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnprocessableEntity extends Exception {\n static readonly STATUS = 422;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnprocessableEntity.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"UnprocessableEntity.js","sourceRoot":"","sources":["../../../src/clientErrors/UnprocessableEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnprocessableEntity extends Exception {\n static readonly STATUS = 422;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnprocessableEntity.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 UnsupportedMediaType extends Exception {
3
+ static STATUS = 415;
3
4
  constructor(message, origin) {
4
5
  super(UnsupportedMediaType.STATUS, message, origin);
5
6
  }
6
7
  }
7
- UnsupportedMediaType.STATUS = 415;
8
8
  //# sourceMappingURL=UnsupportedMediaType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsupportedMediaType.js","sourceRoot":"","sources":["../../../src/clientErrors/UnsupportedMediaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IAGjD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;;AAJe,2BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnsupportedMediaType extends Exception {\n static readonly STATUS = 415;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnsupportedMediaType.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"UnsupportedMediaType.js","sourceRoot":"","sources":["../../../src/clientErrors/UnsupportedMediaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UnsupportedMediaType extends Exception {\n static readonly STATUS = 415;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UnsupportedMediaType.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 UpgradeRequired extends Exception {
3
+ static STATUS = 426;
3
4
  constructor(message, origin) {
4
5
  super(UpgradeRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- UpgradeRequired.STATUS = 426;
8
8
  //# sourceMappingURL=UpgradeRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpgradeRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/UpgradeRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AAJe,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UpgradeRequired extends Exception {\n static readonly STATUS = 426;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UpgradeRequired.STATUS, message, origin);\n }\n}\n"]}
1
+ {"version":3,"file":"UpgradeRequired.js","sourceRoot":"","sources":["../../../src/clientErrors/UpgradeRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;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","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class UpgradeRequired extends Exception {\n static readonly STATUS = 426;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UpgradeRequired.STATUS, message, origin);\n }\n}\n"]}
@@ -1,21 +1,42 @@
1
- import { getStatusConstant } from "@tsed/schema";
1
+ import { constantCase } from "change-case";
2
+ import statuses from "statuses";
3
+ function getStatusConstant(status) {
4
+ return status === 200 ? "SUCCESS" : constantCase(String(statuses(status)));
5
+ }
2
6
  export class Exception extends Error {
7
+ /**
8
+ * Exception base name
9
+ * @type {string}
10
+ */
11
+ name = "HTTP_EXCEPTION";
12
+ /**
13
+ * Message of the exception
14
+ */
15
+ message;
16
+ /**
17
+ * Exception type
18
+ * @type {string}
19
+ */
20
+ type = "HTTP_EXCEPTION";
21
+ /**
22
+ * Stack calling
23
+ */
24
+ stack;
25
+ origin;
26
+ /**
27
+ * HTTP Code Status
28
+ */
29
+ status;
30
+ /**
31
+ *
32
+ */
33
+ body;
34
+ /**
35
+ * Headers must be sent to the response
36
+ */
37
+ headers = {};
3
38
  constructor(status = 500, message = "", origin) {
4
39
  super(message);
5
- /**
6
- * Exception base name
7
- * @type {string}
8
- */
9
- this.name = "HTTP_EXCEPTION";
10
- /**
11
- * Exception type
12
- * @type {string}
13
- */
14
- this.type = "HTTP_EXCEPTION";
15
- /**
16
- * Headers must be sent to the response
17
- */
18
- this.headers = {};
19
40
  this.status = status;
20
41
  this.message = message;
21
42
  this.name = getStatusConstant(status);
@@ -1 +1 @@
1
- {"version":3,"file":"Exception.js","sourceRoot":"","sources":["../../../src/core/Exception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAE/C,MAAM,OAAO,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,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;AAED,MAAM,OAAO,aAAc,SAAQ,SAAS;CAAG","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,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AACzC,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,SAAS,iBAAiB,CAAC,MAAc;IACvC,OAAO,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,OAAO,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;AAED,MAAM,OAAO,aAAc,SAAQ,SAAS;CAAG","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/esm/index.js CHANGED
@@ -1,5 +1,50 @@
1
- export * from "./core";
2
- export * from "./clientErrors";
3
- export * from "./redirections";
4
- export * from "./serverErrors";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./clientErrors/BadMapping.js";
5
+ export * from "./clientErrors/BadRequest.js";
6
+ export * from "./clientErrors/Conflict.js";
7
+ export * from "./clientErrors/ExpectationFailed.js";
8
+ export * from "./clientErrors/Forbidden.js";
9
+ export * from "./clientErrors/Gone.js";
10
+ export * from "./clientErrors/ImATeapot.js";
11
+ export * from "./clientErrors/LengthRequired.js";
12
+ export * from "./clientErrors/MethodNotAllowed.js";
13
+ export * from "./clientErrors/MisdirectedRequest.js";
14
+ export * from "./clientErrors/NotAcceptable.js";
15
+ export * from "./clientErrors/NotFound.js";
16
+ export * from "./clientErrors/PaymentRequired.js";
17
+ export * from "./clientErrors/PreconditionFailed.js";
18
+ export * from "./clientErrors/PreconditionRequired.js";
19
+ export * from "./clientErrors/ProxyAuthentificationRequired.js";
20
+ export * from "./clientErrors/RequestEntityTooLarge.js";
21
+ export * from "./clientErrors/RequestHeaderFieldsTooLarge.js";
22
+ export * from "./clientErrors/RequestRangeUnsatisfiable.js";
23
+ export * from "./clientErrors/RequestTimeout.js";
24
+ export * from "./clientErrors/RequestURITooLong.js";
25
+ export * from "./clientErrors/TooManyRequests.js";
26
+ export * from "./clientErrors/Unauthorized.js";
27
+ export * from "./clientErrors/UnavailableForLegalReasons.js";
28
+ export * from "./clientErrors/UnprocessableEntity.js";
29
+ export * from "./clientErrors/UnsupportedMediaType.js";
30
+ export * from "./clientErrors/UpgradeRequired.js";
31
+ export * from "./core/Exception.js";
32
+ export * from "./redirections/MovedPermanently.js";
33
+ export * from "./redirections/MovedTemporarily.js";
34
+ export * from "./redirections/MultipleChoices.js";
35
+ export * from "./redirections/NotModified.js";
36
+ export * from "./redirections/PermanentRedirect.js";
37
+ export * from "./redirections/SeeOther.js";
38
+ export * from "./redirections/TemporaryRedirect.js";
39
+ export * from "./redirections/UseProxy.js";
40
+ export * from "./serverErrors/BadGateway.js";
41
+ export * from "./serverErrors/BandwidthLimitExceeded.js";
42
+ export * from "./serverErrors/GatewayTimeout.js";
43
+ export * from "./serverErrors/InternalServerError.js";
44
+ export * from "./serverErrors/NetworkAuthenticationRequired.js";
45
+ export * from "./serverErrors/NotExtended.js";
46
+ export * from "./serverErrors/NotImplemented.js";
47
+ export * from "./serverErrors/ProxyError.js";
48
+ export * from "./serverErrors/ServiceUnvailable.js";
49
+ export * from "./serverErrors/VariantAlsoNegotiates.js";
5
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC","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,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC","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"]}