@tsed/exceptions 6.67.0 → 6.69.0-rc.2

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 (109) hide show
  1. package/lib/index.js +505 -9
  2. package/lib/index.js.map +1 -1
  3. package/lib/index.modern.js +457 -0
  4. package/lib/index.modern.js.map +1 -0
  5. package/package.json +9 -5
  6. package/lib/clientErrors/BadMapping.js +0 -13
  7. package/lib/clientErrors/BadMapping.js.map +0 -1
  8. package/lib/clientErrors/BadRequest.js +0 -12
  9. package/lib/clientErrors/BadRequest.js.map +0 -1
  10. package/lib/clientErrors/Conflict.js +0 -12
  11. package/lib/clientErrors/Conflict.js.map +0 -1
  12. package/lib/clientErrors/ExpectationFailed.js +0 -12
  13. package/lib/clientErrors/ExpectationFailed.js.map +0 -1
  14. package/lib/clientErrors/Forbidden.js +0 -12
  15. package/lib/clientErrors/Forbidden.js.map +0 -1
  16. package/lib/clientErrors/Gone.js +0 -12
  17. package/lib/clientErrors/Gone.js.map +0 -1
  18. package/lib/clientErrors/ImATeapot.js +0 -13
  19. package/lib/clientErrors/ImATeapot.js.map +0 -1
  20. package/lib/clientErrors/LengthRequired.js +0 -12
  21. package/lib/clientErrors/LengthRequired.js.map +0 -1
  22. package/lib/clientErrors/MethodNotAllowed.js +0 -12
  23. package/lib/clientErrors/MethodNotAllowed.js.map +0 -1
  24. package/lib/clientErrors/MisdirectedRequest.js +0 -12
  25. package/lib/clientErrors/MisdirectedRequest.js.map +0 -1
  26. package/lib/clientErrors/NotAcceptable.js +0 -12
  27. package/lib/clientErrors/NotAcceptable.js.map +0 -1
  28. package/lib/clientErrors/NotFound.js +0 -12
  29. package/lib/clientErrors/NotFound.js.map +0 -1
  30. package/lib/clientErrors/PaymentRequired.js +0 -12
  31. package/lib/clientErrors/PaymentRequired.js.map +0 -1
  32. package/lib/clientErrors/PreconditionFailed.js +0 -12
  33. package/lib/clientErrors/PreconditionFailed.js.map +0 -1
  34. package/lib/clientErrors/PreconditionRequired.js +0 -12
  35. package/lib/clientErrors/PreconditionRequired.js.map +0 -1
  36. package/lib/clientErrors/ProxyAuthentificationRequired.js +0 -12
  37. package/lib/clientErrors/ProxyAuthentificationRequired.js.map +0 -1
  38. package/lib/clientErrors/RequestEntityTooLarge.js +0 -12
  39. package/lib/clientErrors/RequestEntityTooLarge.js.map +0 -1
  40. package/lib/clientErrors/RequestHeaderFieldsTooLarge.js +0 -12
  41. package/lib/clientErrors/RequestHeaderFieldsTooLarge.js.map +0 -1
  42. package/lib/clientErrors/RequestRangeUnsatisfiable.js +0 -12
  43. package/lib/clientErrors/RequestRangeUnsatisfiable.js.map +0 -1
  44. package/lib/clientErrors/RequestTimeout.js +0 -12
  45. package/lib/clientErrors/RequestTimeout.js.map +0 -1
  46. package/lib/clientErrors/RequestURITooLong.js +0 -12
  47. package/lib/clientErrors/RequestURITooLong.js.map +0 -1
  48. package/lib/clientErrors/TooManyRequests.js +0 -12
  49. package/lib/clientErrors/TooManyRequests.js.map +0 -1
  50. package/lib/clientErrors/Unauthorized.js +0 -12
  51. package/lib/clientErrors/Unauthorized.js.map +0 -1
  52. package/lib/clientErrors/UnavailableForLegalReasons.js +0 -12
  53. package/lib/clientErrors/UnavailableForLegalReasons.js.map +0 -1
  54. package/lib/clientErrors/UnprocessableEntity.js +0 -12
  55. package/lib/clientErrors/UnprocessableEntity.js.map +0 -1
  56. package/lib/clientErrors/UnsupportedMediaType.js +0 -12
  57. package/lib/clientErrors/UnsupportedMediaType.js.map +0 -1
  58. package/lib/clientErrors/UpgradeRequired.js +0 -12
  59. package/lib/clientErrors/UpgradeRequired.js.map +0 -1
  60. package/lib/clientErrors/index.js +0 -31
  61. package/lib/clientErrors/index.js.map +0 -1
  62. package/lib/constants/statuses.js +0 -9
  63. package/lib/constants/statuses.js.map +0 -1
  64. package/lib/core/Exception.js +0 -61
  65. package/lib/core/Exception.js.map +0 -1
  66. package/lib/core/index.js +0 -5
  67. package/lib/core/index.js.map +0 -1
  68. package/lib/redirections/MovedPermanently.js +0 -12
  69. package/lib/redirections/MovedPermanently.js.map +0 -1
  70. package/lib/redirections/MovedTemporarily.js +0 -13
  71. package/lib/redirections/MovedTemporarily.js.map +0 -1
  72. package/lib/redirections/MultipleChoices.js +0 -12
  73. package/lib/redirections/MultipleChoices.js.map +0 -1
  74. package/lib/redirections/NotModified.js +0 -12
  75. package/lib/redirections/NotModified.js.map +0 -1
  76. package/lib/redirections/PermanentRedirect.js +0 -12
  77. package/lib/redirections/PermanentRedirect.js.map +0 -1
  78. package/lib/redirections/SeeOther.js +0 -12
  79. package/lib/redirections/SeeOther.js.map +0 -1
  80. package/lib/redirections/TemporaryRedirect.js +0 -12
  81. package/lib/redirections/TemporaryRedirect.js.map +0 -1
  82. package/lib/redirections/TooManyRedirects.js +0 -12
  83. package/lib/redirections/TooManyRedirects.js.map +0 -1
  84. package/lib/redirections/UseProxy.js +0 -12
  85. package/lib/redirections/UseProxy.js.map +0 -1
  86. package/lib/redirections/index.js +0 -13
  87. package/lib/redirections/index.js.map +0 -1
  88. package/lib/serverErrors/BadGateway.js +0 -12
  89. package/lib/serverErrors/BadGateway.js.map +0 -1
  90. package/lib/serverErrors/BandwidthLimitExceeded.js +0 -12
  91. package/lib/serverErrors/BandwidthLimitExceeded.js.map +0 -1
  92. package/lib/serverErrors/GatewayTimeout.js +0 -12
  93. package/lib/serverErrors/GatewayTimeout.js.map +0 -1
  94. package/lib/serverErrors/InternalServerError.js +0 -12
  95. package/lib/serverErrors/InternalServerError.js.map +0 -1
  96. package/lib/serverErrors/NetworkAuthenticationRequired.js +0 -12
  97. package/lib/serverErrors/NetworkAuthenticationRequired.js.map +0 -1
  98. package/lib/serverErrors/NotExtended.js +0 -12
  99. package/lib/serverErrors/NotExtended.js.map +0 -1
  100. package/lib/serverErrors/NotImplemented.js +0 -12
  101. package/lib/serverErrors/NotImplemented.js.map +0 -1
  102. package/lib/serverErrors/ProxyError.js +0 -13
  103. package/lib/serverErrors/ProxyError.js.map +0 -1
  104. package/lib/serverErrors/ServiceUnvailable.js +0 -12
  105. package/lib/serverErrors/ServiceUnvailable.js.map +0 -1
  106. package/lib/serverErrors/VariantAlsoNegotiates.js +0 -12
  107. package/lib/serverErrors/VariantAlsoNegotiates.js.map +0 -1
  108. package/lib/serverErrors/index.js +0 -14
  109. package/lib/serverErrors/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.modern.js","sources":["../src/core/Exception.ts","../src/constants/statuses.ts","../src/clientErrors/BadMapping.ts","../src/clientErrors/BadRequest.ts","../src/clientErrors/Conflict.ts","../src/clientErrors/ExpectationFailed.ts","../src/clientErrors/Forbidden.ts","../src/clientErrors/Gone.ts","../src/clientErrors/ImATeapot.ts","../src/clientErrors/LengthRequired.ts","../src/clientErrors/MethodNotAllowed.ts","../src/clientErrors/MisdirectedRequest.ts","../src/clientErrors/NotAcceptable.ts","../src/clientErrors/NotFound.ts","../src/clientErrors/PaymentRequired.ts","../src/clientErrors/PreconditionFailed.ts","../src/clientErrors/PreconditionRequired.ts","../src/clientErrors/ProxyAuthentificationRequired.ts","../src/clientErrors/RequestRangeUnsatisfiable.ts","../src/clientErrors/RequestEntityTooLarge.ts","../src/clientErrors/RequestHeaderFieldsTooLarge.ts","../src/clientErrors/RequestTimeout.ts","../src/clientErrors/RequestURITooLong.ts","../src/clientErrors/TooManyRequests.ts","../src/clientErrors/Unauthorized.ts","../src/clientErrors/UnsupportedMediaType.ts","../src/clientErrors/UpgradeRequired.ts","../src/clientErrors/UnavailableForLegalReasons.ts","../src/clientErrors/UnprocessableEntity.ts","../src/redirections/MovedPermanently.ts","../src/redirections/MovedTemporarily.ts","../src/redirections/MultipleChoices.ts","../src/redirections/NotModified.ts","../src/redirections/PermanentRedirect.ts","../src/redirections/SeeOther.ts","../src/redirections/TemporaryRedirect.ts","../src/redirections/TooManyRedirects.ts","../src/redirections/UseProxy.ts","../src/serverErrors/BadGateway.ts","../src/serverErrors/GatewayTimeout.ts","../src/serverErrors/InternalServerError.ts","../src/serverErrors/NotImplemented.ts","../src/serverErrors/ProxyError.ts","../src/serverErrors/ServiceUnvailable.ts","../src/serverErrors/NetworkAuthenticationRequired.ts","../src/serverErrors/NotExtended.ts","../src/serverErrors/VariantAlsoNegotiates.ts","../src/serverErrors/BandwidthLimitExceeded.ts"],"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","import {HTTP_STATUS_MESSAGES} from \"@tsed/schema\";\n\n/**\n *\n */\nexport const HTTP_STATUSES: any = HTTP_STATUS_MESSAGES;\n","import {Exception} from \"../core/Exception\";\n\nexport class BadMapping extends Exception {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class BadRequest extends Exception {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class Conflict extends Exception {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","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","import {Exception} from \"../core/Exception\";\n\nexport class MovedPermanently extends Exception {\n static readonly STATUS = 301;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedPermanently.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class MultipleChoices extends Exception {\n static readonly STATUS = 300;\n\n constructor(message: string, origin?: Error | string | any) {\n super(MultipleChoices.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class NotModified extends Exception {\n static readonly STATUS = 304;\n\n constructor(message: string, origin?: Error | string | any) {\n super(NotModified.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class PermanentRedirect extends Exception {\n static readonly STATUS = 308;\n\n constructor(message: string, origin?: Error | string | any) {\n super(PermanentRedirect.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class SeeOther extends Exception {\n static readonly STATUS = 303;\n\n constructor(message: string, origin?: Error | string | any) {\n super(SeeOther.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class TemporaryRedirect extends Exception {\n static readonly STATUS = 307;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TemporaryRedirect.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class TooManyRedirects extends Exception {\n static readonly STATUS = 310;\n\n constructor(message: string, origin?: Error | string | any) {\n super(TooManyRedirects.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class UseProxy extends Exception {\n static readonly STATUS = 305;\n\n constructor(message: string, origin?: Error | string | any) {\n super(UseProxy.STATUS, message, origin);\n }\n}\n","import {Exception} from \"../core/Exception\";\n\nexport class BadGateway extends Exception {\n static readonly STATUS = 502;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadGateway.STATUS, message, origin);\n }\n}\n","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","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","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","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","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","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","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","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","import {Exception} from \"../core/Exception\";\n\nexport class BandwidthLimitExceeded extends Exception {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n"],"names":["Exception","Error","constructor","status","message","origin","name","getStatusConstant","setOrigin","setHeaders","headers","setHeader","key","value","trim","body","toString","HTTPException","HTTP_STATUSES","HTTP_STATUS_MESSAGES","BadMapping","STATUS","BadRequest","Conflict","ExpectationFailed","Forbidden","Gone","ImATeapot","LengthRequired","MethodNotAllowed","MisdirectedRequest","NotAcceptable","NotFound","PaymentRequired","PreconditionFailed","PreconditionRequired","ProxyAuthentificationRequired","RequestRangeUnsatisfiable","RequestEntityTooLarge","RequestHeaderFieldsTooLarge","RequestTimeout","RequestURITooLong","TooManyRequests","Unauthorized","UnsupportedMediaType","UpgradeRequired","UnavailableForLegalReasons","UnprocessableEntity","MovedPermanently","MovedTemporarily","MultipleChoices","NotModified","PermanentRedirect","SeeOther","TemporaryRedirect","TooManyRedirects","UseProxy","BadGateway","GatewayTimeout","InternalServerError","NotImplemented","ProxyError","ServiceUnvailable","NetworkAuthenticationRequired","NotExtended","VariantAlsoNegotiates","BandwidthLimitExceeded"],"mappings":";;;;;;;;;;;;;;;;;;;;MAEaA,kBAAkBC;AAmC7BC,EAAAA,YAAYC,SAAiB,KAAKC,UAAkB,IAAIC;AACtD,UAAMD,OAAN;AAnCF;;;;;AAIO,aAAA,GAAe,gBAAf;AAKP;;;;;AAIO,aAAA,GAAe,gBAAf;AAcP;;;;AAGO,gBAAA,GAAgC,EAAhC;AAOL,SAAKD,MAAL,GAAcA,MAAd;AACA,SAAKC,OAAL,GAAeA,OAAf;AACA,SAAKE,IAAL,GAAYC,iBAAiB,CAACJ,MAAD,CAA7B;AAEA,SAAKK,SAAL,CAAeH,MAAf;AACD;;AAEDI,EAAAA,UAAU,CAACC,OAAD;AACR,SAAKA,OAAL,gBACK,KAAKA,OADV,EAEKA,OAFL;AAKA,WAAO,IAAP;AACD;;AAEDC,EAAAA,SAAS,CAACC,GAAD,EAAcC,KAAd;AACP,SAAKH,OAAL,CAAaE,GAAb,IAAoBC,KAApB;AAEA,WAAO,IAAP;AACD;;AAEDL,EAAAA,SAAS,CAACH,MAAD;AACP,QAAIA,MAAJ,EAAY;AACV,UAAIA,MAAM,YAAYJ,KAAtB,EAA6B;AAC3B,aAAKI,MAAL,GAAcA,MAAd;AACA,aAAKD,OAAL,MAAkB,KAAKA,4BAA4B,KAAKC,MA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C;AAC3B,UAAM4D,qBAAqB,CAAC5C,MAA5B,EAAoCjB,OAApC,EAA6CC,MAA7C;AACD;;;AAJe4D,4BAAA,GAAS,GAAT;;MCDLC,+BAA+BlE;AAG1CE,EAAAA,YAAYE,SAAiBC;AAC3B,UAAM6D,sBAAsB,CAAC7C,MAA7B,EAAqCjB,OAArC,EAA8CC,MAA9C;AACD;;;AAJe6D,6BAAA,GAAS,GAAT;;;;"}
package/package.json CHANGED
@@ -1,16 +1,20 @@
1
1
  {
2
2
  "name": "@tsed/exceptions",
3
- "version": "6.67.0",
3
+ "version": "6.69.0-rc.2",
4
4
  "description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
5
+ "private": false,
5
6
  "source": "./src/index.ts",
6
7
  "main": "./lib/index.js",
7
8
  "typings": "./lib/index.d.ts",
8
- "private": false,
9
+ "exports": {
10
+ "require": "./lib/index.js",
11
+ "default": "./lib/index.modern.js"
12
+ },
9
13
  "scripts": {
10
- "build": "tsc --build tsconfig.compile.json"
14
+ "build": "microbundle --target node --no-compress --format modern,cjs --tsconfig ./tsconfig.compile.json"
11
15
  },
12
16
  "dependencies": {
13
- "@tsed/schema": "6.67.0",
17
+ "@tsed/schema": "6.69.0-rc.2",
14
18
  "tslib": "2.2.0"
15
19
  },
16
20
  "devDependencies": {},
@@ -19,7 +23,7 @@
19
23
  "bugs": {
20
24
  "url": "https://github.com/tsedio/tsed/issues"
21
25
  },
22
- "homepage": "https://github.com/tsedio/tsed/tree/production//packages/exceptions",
26
+ "homepage": "https://github.com/tsedio/tsed/tree/rc//packages/specs/exceptions",
23
27
  "author": "Romain Lenzotti",
24
28
  "license": "MIT"
25
29
  }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BadMapping = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class BadMapping extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(BadMapping.STATUS, message, origin);
8
- this.name = "BAD_MAPPING";
9
- }
10
- }
11
- exports.BadMapping = BadMapping;
12
- BadMapping.STATUS = 421;
13
- //# sourceMappingURL=BadMapping.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BadMapping.js","sourceRoot":"","sources":["../../src/clientErrors/BadMapping.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAIvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH5C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AANH,gCAOC;AANiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadMapping extends Exception {\n static readonly STATUS = 421;\n name: string = \"BAD_MAPPING\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadMapping.STATUS, message, origin);\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BadRequest = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class BadRequest extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(BadRequest.STATUS, message, origin);
8
- }
9
- }
10
- exports.BadRequest = BadRequest;
11
- BadRequest.STATUS = 400;
12
- //# sourceMappingURL=BadRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BadRequest.js","sourceRoot":"","sources":["../../src/clientErrors/BadRequest.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,UAAW,SAAQ,qBAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AALH,gCAMC;AALiB,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BadRequest extends Exception {\n static readonly STATUS = 400;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BadRequest.STATUS, message, origin);\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Conflict = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class Conflict extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(Conflict.STATUS, message, origin);
8
- }
9
- }
10
- exports.Conflict = Conflict;
11
- Conflict.STATUS = 409;
12
- //# sourceMappingURL=Conflict.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Conflict.js","sourceRoot":"","sources":["../../src/clientErrors/Conflict.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class Conflict extends Exception {\n static readonly STATUS = 409;\n\n constructor(message: string, origin?: Error | string | any) {\n super(Conflict.STATUS, message, origin);\n }\n}\n"]}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExpectationFailed = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class ExpectationFailed extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(ExpectationFailed.STATUS, message, origin);
8
- }
9
- }
10
- exports.ExpectationFailed = ExpectationFailed;
11
- ExpectationFailed.STATUS = 417;
12
- //# sourceMappingURL=ExpectationFailed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpectationFailed.js","sourceRoot":"","sources":["../../src/clientErrors/ExpectationFailed.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Forbidden = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class Forbidden extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(Forbidden.STATUS, message, origin);
8
- }
9
- }
10
- exports.Forbidden = Forbidden;
11
- Forbidden.STATUS = 403;
12
- //# sourceMappingURL=Forbidden.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Forbidden.js","sourceRoot":"","sources":["../../src/clientErrors/Forbidden.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,SAAU,SAAQ,qBAAS;IAGtC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;;AALH,8BAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Gone = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class Gone extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(Gone.STATUS, message, origin);
8
- }
9
- }
10
- exports.Gone = Gone;
11
- Gone.STATUS = 410;
12
- //# sourceMappingURL=Gone.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Gone.js","sourceRoot":"","sources":["../../src/clientErrors/Gone.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,IAAK,SAAQ,qBAAS;IAGjC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AALH,oBAMC;AALiB,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,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImATeapot = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class ImATeapot extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(ImATeapot.STATUS, message, origin);
8
- this.name = "IM_A_TEAPOT";
9
- }
10
- }
11
- exports.ImATeapot = ImATeapot;
12
- ImATeapot.STATUS = 418;
13
- //# sourceMappingURL=ImATeapot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImATeapot.js","sourceRoot":"","sources":["../../src/clientErrors/ImATeapot.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,SAAU,SAAQ,qBAAS;IAItC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAH3C,SAAI,GAAW,aAAa,CAAC;IAI7B,CAAC;;AANH,8BAOC;AANiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LengthRequired = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class LengthRequired extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(LengthRequired.STATUS, message, origin);
8
- }
9
- }
10
- exports.LengthRequired = LengthRequired;
11
- LengthRequired.STATUS = 411;
12
- //# sourceMappingURL=LengthRequired.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LengthRequired.js","sourceRoot":"","sources":["../../src/clientErrors/LengthRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MethodNotAllowed = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class MethodNotAllowed extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(MethodNotAllowed.STATUS, message, origin);
8
- }
9
- }
10
- exports.MethodNotAllowed = MethodNotAllowed;
11
- MethodNotAllowed.STATUS = 405;
12
- //# sourceMappingURL=MethodNotAllowed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MethodNotAllowed.js","sourceRoot":"","sources":["../../src/clientErrors/MethodNotAllowed.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,gBAAiB,SAAQ,qBAAS;IAG7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAClD,CAAC;;AALH,4CAMC;AALiB,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MisdirectedRequest = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class MisdirectedRequest extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(MisdirectedRequest.STATUS, message, origin);
8
- }
9
- }
10
- exports.MisdirectedRequest = MisdirectedRequest;
11
- MisdirectedRequest.STATUS = 421;
12
- //# sourceMappingURL=MisdirectedRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MisdirectedRequest.js","sourceRoot":"","sources":["../../src/clientErrors/MisdirectedRequest.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,kBAAmB,SAAQ,qBAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AALH,gDAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotAcceptable = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class NotAcceptable extends Exception_1.Exception {
6
- constructor(message, origin = "You must accept content-type " + message) {
7
- super(NotAcceptable.STATUS, origin);
8
- }
9
- }
10
- exports.NotAcceptable = NotAcceptable;
11
- NotAcceptable.STATUS = 406;
12
- //# sourceMappingURL=NotAcceptable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotAcceptable.js","sourceRoot":"","sources":["../../src/clientErrors/NotAcceptable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,aAAc,SAAQ,qBAAS;IAG1C,YAAY,OAAe,EAAE,SAA+B,+BAA+B,GAAG,OAAO;QACnG,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,CAAC;;AALH,sCAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotFound = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class NotFound extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(NotFound.STATUS, message, origin);
8
- }
9
- }
10
- exports.NotFound = NotFound;
11
- NotFound.STATUS = 404;
12
- //# sourceMappingURL=NotFound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NotFound.js","sourceRoot":"","sources":["../../src/clientErrors/NotFound.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,QAAS,SAAQ,qBAAS;IAGrC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;;AALH,4BAMC;AALiB,eAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentRequired = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class PaymentRequired extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(PaymentRequired.STATUS, message, origin);
8
- }
9
- }
10
- exports.PaymentRequired = PaymentRequired;
11
- PaymentRequired.STATUS = 402;
12
- //# sourceMappingURL=PaymentRequired.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PaymentRequired.js","sourceRoot":"","sources":["../../src/clientErrors/PaymentRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,eAAgB,SAAQ,qBAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC;AALiB,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreconditionFailed = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class PreconditionFailed extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(PreconditionFailed.STATUS, message, origin);
8
- }
9
- }
10
- exports.PreconditionFailed = PreconditionFailed;
11
- PreconditionFailed.STATUS = 412;
12
- //# sourceMappingURL=PreconditionFailed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreconditionFailed.js","sourceRoot":"","sources":["../../src/clientErrors/PreconditionFailed.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,kBAAmB,SAAQ,qBAAS;IAG/C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACpD,CAAC;;AALH,gDAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreconditionRequired = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class PreconditionRequired extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(PreconditionRequired.STATUS, message, origin);
8
- }
9
- }
10
- exports.PreconditionRequired = PreconditionRequired;
11
- PreconditionRequired.STATUS = 428;
12
- //# sourceMappingURL=PreconditionRequired.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PreconditionRequired.js","sourceRoot":"","sources":["../../src/clientErrors/PreconditionRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,oBAAqB,SAAQ,qBAAS;IAGjD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;;AALH,oDAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProxyAuthentificationRequired = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class ProxyAuthentificationRequired extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(ProxyAuthentificationRequired.STATUS, message, origin);
8
- }
9
- }
10
- exports.ProxyAuthentificationRequired = ProxyAuthentificationRequired;
11
- ProxyAuthentificationRequired.STATUS = 407;
12
- //# sourceMappingURL=ProxyAuthentificationRequired.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProxyAuthentificationRequired.js","sourceRoot":"","sources":["../../src/clientErrors/ProxyAuthentificationRequired.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,6BAA8B,SAAQ,qBAAS;IAG1D,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,6BAA6B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;;AALH,sEAMC;AALiB,oCAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestEntityTooLarge = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class RequestEntityTooLarge extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(RequestEntityTooLarge.STATUS, message, origin);
8
- }
9
- }
10
- exports.RequestEntityTooLarge = RequestEntityTooLarge;
11
- RequestEntityTooLarge.STATUS = 413;
12
- //# sourceMappingURL=RequestEntityTooLarge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestEntityTooLarge.js","sourceRoot":"","sources":["../../src/clientErrors/RequestEntityTooLarge.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,qBAAsB,SAAQ,qBAAS;IAGlD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,qBAAqB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACvD,CAAC;;AALH,sDAMC;AALiB,4BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestHeaderFieldsTooLarge = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class RequestHeaderFieldsTooLarge extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
8
- }
9
- }
10
- exports.RequestHeaderFieldsTooLarge = RequestHeaderFieldsTooLarge;
11
- RequestHeaderFieldsTooLarge.STATUS = 431;
12
- //# sourceMappingURL=RequestHeaderFieldsTooLarge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestHeaderFieldsTooLarge.js","sourceRoot":"","sources":["../../src/clientErrors/RequestHeaderFieldsTooLarge.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,2BAA4B,SAAQ,qBAAS;IAGxD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;;AALH,kEAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestRangeUnsatisfiable = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class RequestRangeUnsatisfiable extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(RequestRangeUnsatisfiable.STATUS, message, origin);
8
- }
9
- }
10
- exports.RequestRangeUnsatisfiable = RequestRangeUnsatisfiable;
11
- RequestRangeUnsatisfiable.STATUS = 416;
12
- //# sourceMappingURL=RequestRangeUnsatisfiable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestRangeUnsatisfiable.js","sourceRoot":"","sources":["../../src/clientErrors/RequestRangeUnsatisfiable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,yBAA0B,SAAQ,qBAAS;IAGtD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,yBAAyB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;;AALH,8DAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestTimeout = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class RequestTimeout extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(RequestTimeout.STATUS, message, origin);
8
- }
9
- }
10
- exports.RequestTimeout = RequestTimeout;
11
- RequestTimeout.STATUS = 408;
12
- //# sourceMappingURL=RequestTimeout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestTimeout.js","sourceRoot":"","sources":["../../src/clientErrors/RequestTimeout.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,cAAe,SAAQ,qBAAS;IAG3C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;;AALH,wCAMC;AALiB,qBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestURITooLong = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class RequestURITooLong extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(RequestURITooLong.STATUS, message, origin);
8
- }
9
- }
10
- exports.RequestURITooLong = RequestURITooLong;
11
- RequestURITooLong.STATUS = 414;
12
- //# sourceMappingURL=RequestURITooLong.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestURITooLong.js","sourceRoot":"","sources":["../../src/clientErrors/RequestURITooLong.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAG9C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC;AALiB,wBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TooManyRequests = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class TooManyRequests extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(TooManyRequests.STATUS, message, origin);
8
- }
9
- }
10
- exports.TooManyRequests = TooManyRequests;
11
- TooManyRequests.STATUS = 429;
12
- //# sourceMappingURL=TooManyRequests.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TooManyRequests.js","sourceRoot":"","sources":["../../src/clientErrors/TooManyRequests.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,eAAgB,SAAQ,qBAAS;IAG5C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;;AALH,0CAMC;AALiB,sBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Unauthorized = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class Unauthorized extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(Unauthorized.STATUS, message, origin);
8
- }
9
- }
10
- exports.Unauthorized = Unauthorized;
11
- Unauthorized.STATUS = 401;
12
- //# sourceMappingURL=Unauthorized.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Unauthorized.js","sourceRoot":"","sources":["../../src/clientErrors/Unauthorized.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,YAAa,SAAQ,qBAAS;IAGzC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC;;AALH,oCAMC;AALiB,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,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnavailableForLegalReasons = void 0;
4
- const Exception_1 = require("../core/Exception");
5
- class UnavailableForLegalReasons extends Exception_1.Exception {
6
- constructor(message, origin) {
7
- super(UnavailableForLegalReasons.STATUS, message, origin);
8
- }
9
- }
10
- exports.UnavailableForLegalReasons = UnavailableForLegalReasons;
11
- UnavailableForLegalReasons.STATUS = 451;
12
- //# sourceMappingURL=UnavailableForLegalReasons.js.map