@tsed/exceptions 7.0.0-alpha.2 → 7.0.0-beta.11
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.
- package/lib/cjs/clientErrors/BadMapping.js +13 -0
- package/lib/cjs/clientErrors/BadMapping.js.map +1 -0
- package/lib/cjs/clientErrors/BadRequest.js +12 -0
- package/lib/cjs/clientErrors/BadRequest.js.map +1 -0
- package/lib/cjs/clientErrors/Conflict.js +12 -0
- package/lib/cjs/clientErrors/Conflict.js.map +1 -0
- package/lib/cjs/clientErrors/ExpectationFailed.js +12 -0
- package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -0
- package/lib/cjs/clientErrors/Forbidden.js +12 -0
- package/lib/cjs/clientErrors/Forbidden.js.map +1 -0
- package/lib/cjs/clientErrors/Gone.js +12 -0
- package/lib/cjs/clientErrors/Gone.js.map +1 -0
- package/lib/cjs/clientErrors/ImATeapot.js +13 -0
- package/lib/cjs/clientErrors/ImATeapot.js.map +1 -0
- package/lib/cjs/clientErrors/LengthRequired.js +12 -0
- package/lib/cjs/clientErrors/LengthRequired.js.map +1 -0
- package/lib/cjs/clientErrors/MethodNotAllowed.js +12 -0
- package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -0
- package/lib/cjs/clientErrors/MisdirectedRequest.js +12 -0
- package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -0
- package/lib/cjs/clientErrors/NotAcceptable.js +12 -0
- package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -0
- package/lib/cjs/clientErrors/NotFound.js +12 -0
- package/lib/cjs/clientErrors/NotFound.js.map +1 -0
- package/lib/cjs/clientErrors/PaymentRequired.js +12 -0
- package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -0
- package/lib/cjs/clientErrors/PreconditionFailed.js +12 -0
- package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -0
- package/lib/cjs/clientErrors/PreconditionRequired.js +12 -0
- package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -0
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +12 -0
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js +12 -0
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -0
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +12 -0
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +12 -0
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
- package/lib/cjs/clientErrors/RequestTimeout.js +12 -0
- package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -0
- package/lib/cjs/clientErrors/RequestURITooLong.js +12 -0
- package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -0
- package/lib/cjs/clientErrors/TooManyRequests.js +12 -0
- package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -0
- package/lib/cjs/clientErrors/Unauthorized.js +12 -0
- package/lib/cjs/clientErrors/Unauthorized.js.map +1 -0
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +12 -0
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -0
- package/lib/cjs/clientErrors/UnprocessableEntity.js +12 -0
- package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -0
- package/lib/cjs/clientErrors/UnsupportedMediaType.js +12 -0
- package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -0
- package/lib/cjs/clientErrors/UpgradeRequired.js +12 -0
- package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -0
- package/lib/cjs/core/Exception.js +66 -0
- package/lib/cjs/core/Exception.js.map +1 -0
- package/lib/cjs/index.js +53 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/redirections/MovedPermanently.js +12 -0
- package/lib/cjs/redirections/MovedPermanently.js.map +1 -0
- package/lib/cjs/redirections/MovedTemporarily.js +13 -0
- package/lib/cjs/redirections/MovedTemporarily.js.map +1 -0
- package/lib/cjs/redirections/MultipleChoices.js +12 -0
- package/lib/cjs/redirections/MultipleChoices.js.map +1 -0
- package/lib/cjs/redirections/NotModified.js +12 -0
- package/lib/cjs/redirections/NotModified.js.map +1 -0
- package/lib/cjs/redirections/PermanentRedirect.js +12 -0
- package/lib/cjs/redirections/PermanentRedirect.js.map +1 -0
- package/lib/cjs/redirections/SeeOther.js +12 -0
- package/lib/cjs/redirections/SeeOther.js.map +1 -0
- package/lib/cjs/redirections/TemporaryRedirect.js +12 -0
- package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -0
- package/lib/cjs/redirections/UseProxy.js +12 -0
- package/lib/cjs/redirections/UseProxy.js.map +1 -0
- package/lib/cjs/serverErrors/BadGateway.js +12 -0
- package/lib/cjs/serverErrors/BadGateway.js.map +1 -0
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +12 -0
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -0
- package/lib/cjs/serverErrors/GatewayTimeout.js +12 -0
- package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -0
- package/lib/cjs/serverErrors/InternalServerError.js +12 -0
- package/lib/cjs/serverErrors/InternalServerError.js.map +1 -0
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +12 -0
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
- package/lib/cjs/serverErrors/NotExtended.js +12 -0
- package/lib/cjs/serverErrors/NotExtended.js.map +1 -0
- package/lib/cjs/serverErrors/NotImplemented.js +12 -0
- package/lib/cjs/serverErrors/NotImplemented.js.map +1 -0
- package/lib/cjs/serverErrors/ProxyError.js +13 -0
- package/lib/cjs/serverErrors/ProxyError.js.map +1 -0
- package/lib/cjs/serverErrors/ServiceUnvailable.js +12 -0
- package/lib/cjs/serverErrors/ServiceUnvailable.js.map +1 -0
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +12 -0
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -0
- package/lib/esm/clientErrors/BadMapping.js +9 -0
- package/lib/esm/clientErrors/BadMapping.js.map +1 -0
- package/lib/esm/clientErrors/BadRequest.js +8 -0
- package/lib/esm/clientErrors/BadRequest.js.map +1 -0
- package/lib/esm/clientErrors/Conflict.js +8 -0
- package/lib/esm/clientErrors/Conflict.js.map +1 -0
- package/lib/esm/clientErrors/ExpectationFailed.js +8 -0
- package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -0
- package/lib/esm/clientErrors/Forbidden.js +8 -0
- package/lib/esm/clientErrors/Forbidden.js.map +1 -0
- package/lib/esm/clientErrors/Gone.js +8 -0
- package/lib/esm/clientErrors/Gone.js.map +1 -0
- package/lib/esm/clientErrors/ImATeapot.js +9 -0
- package/lib/esm/clientErrors/ImATeapot.js.map +1 -0
- package/lib/esm/clientErrors/LengthRequired.js +8 -0
- package/lib/esm/clientErrors/LengthRequired.js.map +1 -0
- package/lib/esm/clientErrors/MethodNotAllowed.js +8 -0
- package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -0
- package/lib/esm/clientErrors/MisdirectedRequest.js +8 -0
- package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -0
- package/lib/esm/clientErrors/NotAcceptable.js +8 -0
- package/lib/esm/clientErrors/NotAcceptable.js.map +1 -0
- package/lib/esm/clientErrors/NotFound.js +8 -0
- package/lib/esm/clientErrors/NotFound.js.map +1 -0
- package/lib/esm/clientErrors/PaymentRequired.js +8 -0
- package/lib/esm/clientErrors/PaymentRequired.js.map +1 -0
- package/lib/esm/clientErrors/PreconditionFailed.js +8 -0
- package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -0
- package/lib/esm/clientErrors/PreconditionRequired.js +8 -0
- package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -0
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +8 -0
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -0
- package/lib/esm/clientErrors/RequestEntityTooLarge.js +8 -0
- package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -0
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +8 -0
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -0
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +8 -0
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -0
- package/lib/esm/clientErrors/RequestTimeout.js +8 -0
- package/lib/esm/clientErrors/RequestTimeout.js.map +1 -0
- package/lib/esm/clientErrors/RequestURITooLong.js +8 -0
- package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -0
- package/lib/esm/clientErrors/TooManyRequests.js +8 -0
- package/lib/esm/clientErrors/TooManyRequests.js.map +1 -0
- package/lib/esm/clientErrors/Unauthorized.js +8 -0
- package/lib/esm/clientErrors/Unauthorized.js.map +1 -0
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js +8 -0
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -0
- package/lib/esm/clientErrors/UnprocessableEntity.js +8 -0
- package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -0
- package/lib/esm/clientErrors/UnsupportedMediaType.js +8 -0
- package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -0
- package/lib/esm/clientErrors/UpgradeRequired.js +8 -0
- package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -0
- package/lib/esm/core/Exception.js +60 -0
- package/lib/esm/core/Exception.js.map +1 -0
- package/lib/esm/index.js +50 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +3 -0
- package/lib/esm/redirections/MovedPermanently.js +8 -0
- package/lib/esm/redirections/MovedPermanently.js.map +1 -0
- package/lib/esm/redirections/MovedTemporarily.js +9 -0
- package/lib/esm/redirections/MovedTemporarily.js.map +1 -0
- package/lib/esm/redirections/MultipleChoices.js +8 -0
- package/lib/esm/redirections/MultipleChoices.js.map +1 -0
- package/lib/esm/redirections/NotModified.js +8 -0
- package/lib/esm/redirections/NotModified.js.map +1 -0
- package/lib/esm/redirections/PermanentRedirect.js +8 -0
- package/lib/esm/redirections/PermanentRedirect.js.map +1 -0
- package/lib/esm/redirections/SeeOther.js +8 -0
- package/lib/esm/redirections/SeeOther.js.map +1 -0
- package/lib/esm/redirections/TemporaryRedirect.js +8 -0
- package/lib/esm/redirections/TemporaryRedirect.js.map +1 -0
- package/lib/esm/redirections/UseProxy.js +8 -0
- package/lib/esm/redirections/UseProxy.js.map +1 -0
- package/lib/esm/serverErrors/BadGateway.js +8 -0
- package/lib/esm/serverErrors/BadGateway.js.map +1 -0
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js +8 -0
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -0
- package/lib/esm/serverErrors/GatewayTimeout.js +8 -0
- package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -0
- package/lib/esm/serverErrors/InternalServerError.js +8 -0
- package/lib/esm/serverErrors/InternalServerError.js.map +1 -0
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +8 -0
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -0
- package/lib/esm/serverErrors/NotExtended.js +8 -0
- package/lib/esm/serverErrors/NotExtended.js.map +1 -0
- package/lib/esm/serverErrors/NotImplemented.js +8 -0
- package/lib/esm/serverErrors/NotImplemented.js.map +1 -0
- package/lib/esm/serverErrors/ProxyError.js +9 -0
- package/lib/esm/serverErrors/ProxyError.js.map +1 -0
- package/lib/esm/serverErrors/ServiceUnvailable.js +8 -0
- package/lib/esm/serverErrors/ServiceUnvailable.js.map +1 -0
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js +8 -0
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -0
- package/lib/{clientErrors → types/clientErrors}/BadMapping.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/BadRequest.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Conflict.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ExpectationFailed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Forbidden.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Gone.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ImATeapot.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/LengthRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/MethodNotAllowed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/MisdirectedRequest.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/NotAcceptable.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/NotFound.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PaymentRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PreconditionFailed.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/PreconditionRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/ProxyAuthentificationRequired.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestEntityTooLarge.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestHeaderFieldsTooLarge.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestRangeUnsatisfiable.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestTimeout.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/RequestURITooLong.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/TooManyRequests.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/Unauthorized.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnavailableForLegalReasons.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnprocessableEntity.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UnsupportedMediaType.d.ts +0 -0
- package/lib/{clientErrors → types/clientErrors}/UpgradeRequired.d.ts +0 -0
- package/lib/{core → types/core}/Exception.d.ts +0 -0
- package/lib/types/index.d.ts +49 -0
- package/lib/{redirections → types/redirections}/MovedPermanently.d.ts +0 -0
- package/lib/{redirections → types/redirections}/MovedTemporarily.d.ts +0 -0
- package/lib/{redirections → types/redirections}/MultipleChoices.d.ts +0 -0
- package/lib/{redirections → types/redirections}/NotModified.d.ts +0 -0
- package/lib/{redirections → types/redirections}/PermanentRedirect.d.ts +0 -0
- package/lib/{redirections → types/redirections}/SeeOther.d.ts +0 -0
- package/lib/{redirections → types/redirections}/TemporaryRedirect.d.ts +0 -0
- package/lib/{redirections → types/redirections}/UseProxy.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/BadGateway.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/BandwidthLimitExceeded.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/GatewayTimeout.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/InternalServerError.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NetworkAuthenticationRequired.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NotExtended.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/NotImplemented.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/ProxyError.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/ServiceUnvailable.d.ts +0 -0
- package/lib/{serverErrors → types/serverErrors}/VariantAlsoNegotiates.d.ts +0 -0
- package/package.json +20 -14
- package/readme.md +1 -2
- package/tsconfig.compile.esm.json +12 -0
- package/lib/clientErrors/index.d.ts +0 -27
- package/lib/constants/statuses.d.ts +0 -4
- package/lib/core/index.d.ts +0 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -505
- package/lib/index.js.map +0 -1
- package/lib/index.modern.js +0 -457
- package/lib/index.modern.js.map +0 -1
- package/lib/redirections/TooManyRedirects.d.ts +0 -5
- package/lib/redirections/index.d.ts +0 -9
- package/lib/serverErrors/index.d.ts +0 -10
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class PreconditionRequired extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(PreconditionRequired.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
PreconditionRequired.STATUS = 428;
|
|
8
|
+
//# sourceMappingURL=PreconditionRequired.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class ProxyAuthentificationRequired extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(ProxyAuthentificationRequired.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
ProxyAuthentificationRequired.STATUS = 407;
|
|
8
|
+
//# sourceMappingURL=ProxyAuthentificationRequired.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class RequestEntityTooLarge extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(RequestEntityTooLarge.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
RequestEntityTooLarge.STATUS = 413;
|
|
8
|
+
//# sourceMappingURL=RequestEntityTooLarge.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class RequestHeaderFieldsTooLarge extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(RequestHeaderFieldsTooLarge.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
RequestHeaderFieldsTooLarge.STATUS = 431;
|
|
8
|
+
//# sourceMappingURL=RequestHeaderFieldsTooLarge.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class RequestRangeUnsatisfiable extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(RequestRangeUnsatisfiable.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
RequestRangeUnsatisfiable.STATUS = 416;
|
|
8
|
+
//# sourceMappingURL=RequestRangeUnsatisfiable.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class RequestURITooLong extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(RequestURITooLong.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
RequestURITooLong.STATUS = 414;
|
|
8
|
+
//# sourceMappingURL=RequestURITooLong.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class TooManyRequests extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(TooManyRequests.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
TooManyRequests.STATUS = 429;
|
|
8
|
+
//# sourceMappingURL=TooManyRequests.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class UnavailableForLegalReasons extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(UnavailableForLegalReasons.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
UnavailableForLegalReasons.STATUS = 451;
|
|
8
|
+
//# sourceMappingURL=UnavailableForLegalReasons.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class UnprocessableEntity extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(UnprocessableEntity.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
UnprocessableEntity.STATUS = 422;
|
|
8
|
+
//# sourceMappingURL=UnprocessableEntity.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class UnsupportedMediaType extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(UnsupportedMediaType.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
UnsupportedMediaType.STATUS = 415;
|
|
8
|
+
//# sourceMappingURL=UnsupportedMediaType.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class UpgradeRequired extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(UpgradeRequired.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
UpgradeRequired.STATUS = 426;
|
|
8
|
+
//# sourceMappingURL=UpgradeRequired.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
}
|
|
6
|
+
export class Exception extends Error {
|
|
7
|
+
constructor(status = 500, message = "", origin) {
|
|
8
|
+
super(message);
|
|
9
|
+
/**
|
|
10
|
+
* Exception base name
|
|
11
|
+
* @type {string}
|
|
12
|
+
*/
|
|
13
|
+
this.name = "HTTP_EXCEPTION";
|
|
14
|
+
/**
|
|
15
|
+
* Exception type
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
this.type = "HTTP_EXCEPTION";
|
|
19
|
+
/**
|
|
20
|
+
* Headers must be sent to the response
|
|
21
|
+
*/
|
|
22
|
+
this.headers = {};
|
|
23
|
+
this.status = status;
|
|
24
|
+
this.message = message;
|
|
25
|
+
this.name = getStatusConstant(status);
|
|
26
|
+
this.setOrigin(origin);
|
|
27
|
+
}
|
|
28
|
+
setHeaders(headers) {
|
|
29
|
+
this.headers = {
|
|
30
|
+
...this.headers,
|
|
31
|
+
...headers
|
|
32
|
+
};
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
setHeader(key, value) {
|
|
36
|
+
this.headers[key] = value;
|
|
37
|
+
return this;
|
|
38
|
+
}
|
|
39
|
+
setOrigin(origin) {
|
|
40
|
+
if (origin) {
|
|
41
|
+
if (origin instanceof Error) {
|
|
42
|
+
this.origin = origin;
|
|
43
|
+
this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
|
|
44
|
+
}
|
|
45
|
+
else if (typeof origin === "string") {
|
|
46
|
+
this.origin = new Error(origin);
|
|
47
|
+
this.message = `${this.message}, innerException: ${this.origin.message}`.trim();
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.body = origin;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return `${this.name}(${this.status}): ${this.message} `.trim();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export class HTTPException extends Exception {
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=Exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;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 {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
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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";
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class MovedPermanently extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(MovedPermanently.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
MovedPermanently.STATUS = 301;
|
|
8
|
+
//# sourceMappingURL=MovedPermanently.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovedPermanently.js","sourceRoot":"","sources":["../../../src/redirections/MovedPermanently.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 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"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class MovedTemporarily extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(MovedTemporarily.STATUS, message, origin);
|
|
5
|
+
this.name = "MOVED_TEMPORARILY";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
MovedTemporarily.STATUS = 302;
|
|
9
|
+
//# sourceMappingURL=MovedTemporarily.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MovedTemporarily.js","sourceRoot":"","sources":["../../../src/redirections/MovedTemporarily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAI7C,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAHlD,SAAI,GAAW,mBAAmB,CAAC;IAInC,CAAC;;AALe,uBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class MovedTemporarily extends Exception {\n static readonly STATUS = 302;\n name: string = \"MOVED_TEMPORARILY\";\n\n constructor(message: string, origin?: Error | string | any) {\n super(MovedTemporarily.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class MultipleChoices extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(MultipleChoices.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
MultipleChoices.STATUS = 300;
|
|
8
|
+
//# sourceMappingURL=MultipleChoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultipleChoices.js","sourceRoot":"","sources":["../../../src/redirections/MultipleChoices.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 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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotModified.js","sourceRoot":"","sources":["../../../src/redirections/NotModified.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 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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class PermanentRedirect extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(PermanentRedirect.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
PermanentRedirect.STATUS = 308;
|
|
8
|
+
//# sourceMappingURL=PermanentRedirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermanentRedirect.js","sourceRoot":"","sources":["../../../src/redirections/PermanentRedirect.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 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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeeOther.js","sourceRoot":"","sources":["../../../src/redirections/SeeOther.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 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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class TemporaryRedirect extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(TemporaryRedirect.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
TemporaryRedirect.STATUS = 307;
|
|
8
|
+
//# sourceMappingURL=TemporaryRedirect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemporaryRedirect.js","sourceRoot":"","sources":["../../../src/redirections/TemporaryRedirect.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 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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseProxy.js","sourceRoot":"","sources":["../../../src/redirections/UseProxy.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 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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BadGateway.js","sourceRoot":"","sources":["../../../src/serverErrors/BadGateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,UAAW,SAAQ,SAAS;IAGvC,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;;AAJe,iBAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class 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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class BandwidthLimitExceeded extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(BandwidthLimitExceeded.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
BandwidthLimitExceeded.STATUS = 509;
|
|
8
|
+
//# sourceMappingURL=BandwidthLimitExceeded.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BandwidthLimitExceeded.js","sourceRoot":"","sources":["../../../src/serverErrors/BandwidthLimitExceeded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IAGnD,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;;AAJe,6BAAM,GAAG,GAAG,CAAC","sourcesContent":["import {Exception} from \"../core/Exception\";\n\nexport class BandwidthLimitExceeded extends Exception {\n static readonly STATUS = 509;\n\n constructor(message: string, origin?: Error | string | any) {\n super(BandwidthLimitExceeded.STATUS, message, origin);\n }\n}\n"]}
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class InternalServerError extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(InternalServerError.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
InternalServerError.STATUS = 500;
|
|
8
|
+
//# sourceMappingURL=InternalServerError.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class NetworkAuthenticationRequired extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(NetworkAuthenticationRequired.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
NetworkAuthenticationRequired.STATUS = 511;
|
|
8
|
+
//# sourceMappingURL=NetworkAuthenticationRequired.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class ProxyError extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(ProxyError.STATUS, message, origin);
|
|
5
|
+
this.name = "PROXY_ERROR";
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
ProxyError.STATUS = 502;
|
|
9
|
+
//# sourceMappingURL=ProxyError.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class ServiceUnvailable extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(ServiceUnvailable.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
ServiceUnvailable.STATUS = 503;
|
|
8
|
+
//# sourceMappingURL=ServiceUnvailable.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exception } from "../core/Exception.js";
|
|
2
|
+
export class VariantAlsoNegotiates extends Exception {
|
|
3
|
+
constructor(message, origin) {
|
|
4
|
+
super(VariantAlsoNegotiates.STATUS, message, origin);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
VariantAlsoNegotiates.STATUS = 506;
|
|
8
|
+
//# sourceMappingURL=VariantAlsoNegotiates.js.map
|
|
@@ -0,0 +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"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|