@tsed/exceptions 7.0.0-beta.9 → 7.0.0-rc.3

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 (187) 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 +31 -14
  57. package/lib/cjs/core/Exception.js.map +1 -1
  58. package/lib/cjs/redirections/MovedPermanently.js +1 -1
  59. package/lib/cjs/redirections/MovedPermanently.js.map +1 -1
  60. package/lib/cjs/redirections/MovedTemporarily.js +2 -2
  61. package/lib/cjs/redirections/MovedTemporarily.js.map +1 -1
  62. package/lib/cjs/redirections/MultipleChoices.js +1 -1
  63. package/lib/cjs/redirections/MultipleChoices.js.map +1 -1
  64. package/lib/cjs/redirections/NotModified.js +1 -1
  65. package/lib/cjs/redirections/NotModified.js.map +1 -1
  66. package/lib/cjs/redirections/PermanentRedirect.js +1 -1
  67. package/lib/cjs/redirections/PermanentRedirect.js.map +1 -1
  68. package/lib/cjs/redirections/SeeOther.js +1 -1
  69. package/lib/cjs/redirections/SeeOther.js.map +1 -1
  70. package/lib/cjs/redirections/TemporaryRedirect.js +1 -1
  71. package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -1
  72. package/lib/cjs/redirections/UseProxy.js +1 -1
  73. package/lib/cjs/redirections/UseProxy.js.map +1 -1
  74. package/lib/cjs/serverErrors/BadGateway.js +1 -1
  75. package/lib/cjs/serverErrors/BadGateway.js.map +1 -1
  76. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +1 -1
  77. package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -1
  78. package/lib/cjs/serverErrors/GatewayTimeout.js +1 -1
  79. package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -1
  80. package/lib/cjs/serverErrors/InternalServerError.js +1 -1
  81. package/lib/cjs/serverErrors/InternalServerError.js.map +1 -1
  82. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +1 -1
  83. package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
  84. package/lib/cjs/serverErrors/NotExtended.js +1 -1
  85. package/lib/cjs/serverErrors/NotExtended.js.map +1 -1
  86. package/lib/cjs/serverErrors/NotImplemented.js +1 -1
  87. package/lib/cjs/serverErrors/NotImplemented.js.map +1 -1
  88. package/lib/cjs/serverErrors/ProxyError.js +2 -2
  89. package/lib/cjs/serverErrors/ProxyError.js.map +1 -1
  90. package/lib/cjs/serverErrors/ServiceUnvailable.js +1 -1
  91. package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -1
  92. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +1 -1
  93. package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -1
  94. package/lib/esm/clientErrors/BadMapping.js +2 -2
  95. package/lib/esm/clientErrors/BadMapping.js.map +1 -1
  96. package/lib/esm/clientErrors/BadRequest.js +1 -1
  97. package/lib/esm/clientErrors/BadRequest.js.map +1 -1
  98. package/lib/esm/clientErrors/Conflict.js +1 -1
  99. package/lib/esm/clientErrors/Conflict.js.map +1 -1
  100. package/lib/esm/clientErrors/ExpectationFailed.js +1 -1
  101. package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -1
  102. package/lib/esm/clientErrors/Forbidden.js +1 -1
  103. package/lib/esm/clientErrors/Forbidden.js.map +1 -1
  104. package/lib/esm/clientErrors/Gone.js +1 -1
  105. package/lib/esm/clientErrors/Gone.js.map +1 -1
  106. package/lib/esm/clientErrors/ImATeapot.js +2 -2
  107. package/lib/esm/clientErrors/ImATeapot.js.map +1 -1
  108. package/lib/esm/clientErrors/LengthRequired.js +1 -1
  109. package/lib/esm/clientErrors/LengthRequired.js.map +1 -1
  110. package/lib/esm/clientErrors/MethodNotAllowed.js +1 -1
  111. package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -1
  112. package/lib/esm/clientErrors/MisdirectedRequest.js +1 -1
  113. package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -1
  114. package/lib/esm/clientErrors/NotAcceptable.js +1 -1
  115. package/lib/esm/clientErrors/NotAcceptable.js.map +1 -1
  116. package/lib/esm/clientErrors/NotFound.js +1 -1
  117. package/lib/esm/clientErrors/NotFound.js.map +1 -1
  118. package/lib/esm/clientErrors/PaymentRequired.js +1 -1
  119. package/lib/esm/clientErrors/PaymentRequired.js.map +1 -1
  120. package/lib/esm/clientErrors/PreconditionFailed.js +1 -1
  121. package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -1
  122. package/lib/esm/clientErrors/PreconditionRequired.js +1 -1
  123. package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -1
  124. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +1 -1
  125. package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
  126. package/lib/esm/clientErrors/RequestEntityTooLarge.js +1 -1
  127. package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -1
  128. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +1 -1
  129. package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
  130. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +1 -1
  131. package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
  132. package/lib/esm/clientErrors/RequestTimeout.js +1 -1
  133. package/lib/esm/clientErrors/RequestTimeout.js.map +1 -1
  134. package/lib/esm/clientErrors/RequestURITooLong.js +1 -1
  135. package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -1
  136. package/lib/esm/clientErrors/TooManyRequests.js +1 -1
  137. package/lib/esm/clientErrors/TooManyRequests.js.map +1 -1
  138. package/lib/esm/clientErrors/Unauthorized.js +1 -1
  139. package/lib/esm/clientErrors/Unauthorized.js.map +1 -1
  140. package/lib/esm/clientErrors/UnavailableForLegalReasons.js +1 -1
  141. package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -1
  142. package/lib/esm/clientErrors/UnprocessableEntity.js +1 -1
  143. package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -1
  144. package/lib/esm/clientErrors/UnsupportedMediaType.js +1 -1
  145. package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -1
  146. package/lib/esm/clientErrors/UpgradeRequired.js +1 -1
  147. package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -1
  148. package/lib/esm/core/Exception.js +31 -14
  149. package/lib/esm/core/Exception.js.map +1 -1
  150. package/lib/esm/redirections/MovedPermanently.js +1 -1
  151. package/lib/esm/redirections/MovedPermanently.js.map +1 -1
  152. package/lib/esm/redirections/MovedTemporarily.js +2 -2
  153. package/lib/esm/redirections/MovedTemporarily.js.map +1 -1
  154. package/lib/esm/redirections/MultipleChoices.js +1 -1
  155. package/lib/esm/redirections/MultipleChoices.js.map +1 -1
  156. package/lib/esm/redirections/NotModified.js +1 -1
  157. package/lib/esm/redirections/NotModified.js.map +1 -1
  158. package/lib/esm/redirections/PermanentRedirect.js +1 -1
  159. package/lib/esm/redirections/PermanentRedirect.js.map +1 -1
  160. package/lib/esm/redirections/SeeOther.js +1 -1
  161. package/lib/esm/redirections/SeeOther.js.map +1 -1
  162. package/lib/esm/redirections/TemporaryRedirect.js +1 -1
  163. package/lib/esm/redirections/TemporaryRedirect.js.map +1 -1
  164. package/lib/esm/redirections/UseProxy.js +1 -1
  165. package/lib/esm/redirections/UseProxy.js.map +1 -1
  166. package/lib/esm/serverErrors/BadGateway.js +1 -1
  167. package/lib/esm/serverErrors/BadGateway.js.map +1 -1
  168. package/lib/esm/serverErrors/BandwidthLimitExceeded.js +1 -1
  169. package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -1
  170. package/lib/esm/serverErrors/GatewayTimeout.js +1 -1
  171. package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -1
  172. package/lib/esm/serverErrors/InternalServerError.js +1 -1
  173. package/lib/esm/serverErrors/InternalServerError.js.map +1 -1
  174. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +1 -1
  175. package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
  176. package/lib/esm/serverErrors/NotExtended.js +1 -1
  177. package/lib/esm/serverErrors/NotExtended.js.map +1 -1
  178. package/lib/esm/serverErrors/NotImplemented.js +1 -1
  179. package/lib/esm/serverErrors/NotImplemented.js.map +1 -1
  180. package/lib/esm/serverErrors/ProxyError.js +2 -2
  181. package/lib/esm/serverErrors/ProxyError.js.map +1 -1
  182. package/lib/esm/serverErrors/ServiceUnvailable.js +1 -1
  183. package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -1
  184. package/lib/esm/serverErrors/VariantAlsoNegotiates.js +1 -1
  185. package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -1
  186. package/package.json +9 -5
  187. package/readme.md +3 -2
@@ -1,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class GatewayTimeout extends Exception {
3
+ static STATUS = 504;
3
4
  constructor(message, origin) {
4
5
  super(GatewayTimeout.STATUS, message, origin);
5
6
  }
6
7
  }
7
- GatewayTimeout.STATUS = 504;
8
8
  //# sourceMappingURL=GatewayTimeout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayTimeout.js","sourceRoot":"","sources":["../../../src/serverErrors/GatewayTimeout.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 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,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 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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class InternalServerError extends Exception {
3
+ static STATUS = 500;
3
4
  constructor(message, origin) {
4
5
  super(InternalServerError.STATUS, message, origin);
5
6
  }
6
7
  }
7
- InternalServerError.STATUS = 500;
8
8
  //# sourceMappingURL=InternalServerError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InternalServerError.js","sourceRoot":"","sources":["../../../src/serverErrors/InternalServerError.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 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,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 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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class NetworkAuthenticationRequired extends Exception {
3
+ static STATUS = 511;
3
4
  constructor(message, origin) {
4
5
  super(NetworkAuthenticationRequired.STATUS, message, origin);
5
6
  }
6
7
  }
7
- NetworkAuthenticationRequired.STATUS = 511;
8
8
  //# sourceMappingURL=NetworkAuthenticationRequired.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkAuthenticationRequired.js","sourceRoot":"","sources":["../../../src/serverErrors/NetworkAuthenticationRequired.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 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,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 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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class NotExtended extends Exception {
3
+ static STATUS = 510;
3
4
  constructor(message, origin) {
4
5
  super(NotExtended.STATUS, message, origin);
5
6
  }
6
7
  }
7
- NotExtended.STATUS = 510;
8
8
  //# sourceMappingURL=NotExtended.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotExtended.js","sourceRoot":"","sources":["../../../src/serverErrors/NotExtended.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,WAAY,SAAQ,SAAS;IAGxC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;;AAJe,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,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,WAAY,SAAQ,SAAS;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","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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class NotImplemented extends Exception {
3
+ static STATUS = 501;
3
4
  constructor(message, origin) {
4
5
  super(NotImplemented.STATUS, message, origin);
5
6
  }
6
7
  }
7
- NotImplemented.STATUS = 501;
8
8
  //# sourceMappingURL=NotImplemented.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotImplemented.js","sourceRoot":"","sources":["../../../src/serverErrors/NotImplemented.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 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,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 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,9 +1,9 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class ProxyError extends Exception {
3
+ static STATUS = 502;
4
+ name = "PROXY_ERROR";
3
5
  constructor(message, origin) {
4
6
  super(ProxyError.STATUS, message, origin);
5
- this.name = "PROXY_ERROR";
6
7
  }
7
8
  }
8
- ProxyError.STATUS = 502;
9
9
  //# sourceMappingURL=ProxyError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProxyError.js","sourceRoot":"","sources":["../../../src/serverErrors/ProxyError.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 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,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 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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class ServiceUnvailable extends Exception {
3
+ static STATUS = 503;
3
4
  constructor(message, origin) {
4
5
  super(ServiceUnvailable.STATUS, message, origin);
5
6
  }
6
7
  }
7
- ServiceUnvailable.STATUS = 503;
8
8
  //# sourceMappingURL=ServiceUnvailable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.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 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,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 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,8 +1,8 @@
1
1
  import { Exception } from "../core/Exception.js";
2
2
  export class VariantAlsoNegotiates extends Exception {
3
+ static STATUS = 506;
3
4
  constructor(message, origin) {
4
5
  super(VariantAlsoNegotiates.STATUS, message, origin);
5
6
  }
6
7
  }
7
- VariantAlsoNegotiates.STATUS = 506;
8
8
  //# sourceMappingURL=VariantAlsoNegotiates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VariantAlsoNegotiates.js","sourceRoot":"","sources":["../../../src/serverErrors/VariantAlsoNegotiates.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 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,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 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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/exceptions",
3
- "version": "7.0.0-beta.9",
3
+ "version": "7.0.0-rc.3",
4
4
  "description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
@@ -17,12 +17,13 @@
17
17
  "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
18
18
  "build:cjs": "tsc --build tsconfig.compile.json",
19
19
  "build:esm": "tsc --build tsconfig.compile.esm.json",
20
- "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\""
20
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"",
21
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
21
22
  },
22
23
  "dependencies": {
23
24
  "change-case": "4.1.2",
24
25
  "statuses": ">=2.0.1",
25
- "tslib": "2.3.1"
26
+ "tslib": "2.4.0"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@types/statuses": "2.0.0"
@@ -32,7 +33,10 @@
32
33
  "bugs": {
33
34
  "url": "https://github.com/tsedio/tsed/issues"
34
35
  },
35
- "homepage": "https://github.com/tsedio/tsed/tree/beta/packages/specs/exceptions",
36
+ "homepage": "https://github.com/tsedio/tsed/tree/rc/packages/specs/exceptions",
36
37
  "author": "Romain Lenzotti",
37
- "license": "MIT"
38
+ "license": "MIT",
39
+ "publishConfig": {
40
+ "tag": "rc"
41
+ }
38
42
  }
package/readme.md CHANGED
@@ -11,7 +11,8 @@
11
11
  [![npm version](https://badge.fury.io/js/%40tsed%2Fcommon.svg)](https://badge.fury.io/js/%40tsed%2Fcommon)
12
12
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
13
13
  [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
14
- [![backers](https://opencollective.com/tsed/tiers/badge.svg)](https://opencollective.com/tsed)
14
+ [![github](https://img.shields.io/static/v1?label=Github%20sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/romakita)
15
+ [![opencollective](https://img.shields.io/static/v1?label=OpenCollective%20sponsor&message=%E2%9D%A4&logo=OpenCollective&color=%23fe8e86)](https://opencollective.com/tsed)
15
16
 
16
17
  </div>
17
18
 
@@ -52,7 +53,7 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
52
53
 
53
54
  The MIT License (MIT)
54
55
 
55
- Copyright (c) 2016 - 2018 Romain Lenzotti
56
+ Copyright (c) 2016 - 2022 Romain Lenzotti
56
57
 
57
58
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
58
59