@tsed/exceptions 7.40.0 → 7.41.1
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/jest.config.js +1 -1
- package/lib/cjs/clientErrors/BadMapping.js +2 -2
- package/lib/cjs/clientErrors/BadMapping.js.map +1 -1
- package/lib/cjs/clientErrors/BadRequest.js +2 -2
- package/lib/cjs/clientErrors/BadRequest.js.map +1 -1
- package/lib/cjs/clientErrors/Conflict.js +2 -2
- package/lib/cjs/clientErrors/Conflict.js.map +1 -1
- package/lib/cjs/clientErrors/ExpectationFailed.js +2 -2
- package/lib/cjs/clientErrors/ExpectationFailed.js.map +1 -1
- package/lib/cjs/clientErrors/Forbidden.js +2 -2
- package/lib/cjs/clientErrors/Forbidden.js.map +1 -1
- package/lib/cjs/clientErrors/Gone.js +2 -2
- package/lib/cjs/clientErrors/Gone.js.map +1 -1
- package/lib/cjs/clientErrors/ImATeapot.js +2 -2
- package/lib/cjs/clientErrors/ImATeapot.js.map +1 -1
- package/lib/cjs/clientErrors/LengthRequired.js +2 -2
- package/lib/cjs/clientErrors/LengthRequired.js.map +1 -1
- package/lib/cjs/clientErrors/MethodNotAllowed.js +2 -2
- package/lib/cjs/clientErrors/MethodNotAllowed.js.map +1 -1
- package/lib/cjs/clientErrors/MisdirectedRequest.js +2 -2
- package/lib/cjs/clientErrors/MisdirectedRequest.js.map +1 -1
- package/lib/cjs/clientErrors/NotAcceptable.js +2 -2
- package/lib/cjs/clientErrors/NotAcceptable.js.map +1 -1
- package/lib/cjs/clientErrors/NotFound.js +2 -2
- package/lib/cjs/clientErrors/NotFound.js.map +1 -1
- package/lib/cjs/clientErrors/PaymentRequired.js +2 -2
- package/lib/cjs/clientErrors/PaymentRequired.js.map +1 -1
- package/lib/cjs/clientErrors/PreconditionFailed.js +2 -2
- package/lib/cjs/clientErrors/PreconditionFailed.js.map +1 -1
- package/lib/cjs/clientErrors/PreconditionRequired.js +2 -2
- package/lib/cjs/clientErrors/PreconditionRequired.js.map +1 -1
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js +2 -2
- package/lib/cjs/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js +2 -2
- package/lib/cjs/clientErrors/RequestEntityTooLarge.js.map +1 -1
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js +2 -2
- package/lib/cjs/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js +2 -2
- package/lib/cjs/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
- package/lib/cjs/clientErrors/RequestTimeout.js +2 -2
- package/lib/cjs/clientErrors/RequestTimeout.js.map +1 -1
- package/lib/cjs/clientErrors/RequestURITooLong.js +2 -2
- package/lib/cjs/clientErrors/RequestURITooLong.js.map +1 -1
- package/lib/cjs/clientErrors/TooManyRequests.js +2 -2
- package/lib/cjs/clientErrors/TooManyRequests.js.map +1 -1
- package/lib/cjs/clientErrors/Unauthorized.js +2 -2
- package/lib/cjs/clientErrors/Unauthorized.js.map +1 -1
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js +2 -2
- package/lib/cjs/clientErrors/UnavailableForLegalReasons.js.map +1 -1
- package/lib/cjs/clientErrors/UnprocessableEntity.js +2 -2
- package/lib/cjs/clientErrors/UnprocessableEntity.js.map +1 -1
- package/lib/cjs/clientErrors/UnsupportedMediaType.js +2 -2
- package/lib/cjs/clientErrors/UnsupportedMediaType.js.map +1 -1
- package/lib/cjs/clientErrors/UpgradeRequired.js +2 -2
- package/lib/cjs/clientErrors/UpgradeRequired.js.map +1 -1
- package/lib/cjs/core/ClientException.js +12 -0
- package/lib/cjs/core/ClientException.js.map +1 -0
- package/lib/cjs/core/Exception.js +9 -0
- package/lib/cjs/core/Exception.js.map +1 -1
- package/lib/cjs/core/RedirectException.js +12 -0
- package/lib/cjs/core/RedirectException.js.map +1 -0
- package/lib/cjs/core/ServerException.js +12 -0
- package/lib/cjs/core/ServerException.js.map +1 -0
- package/lib/cjs/core/StatusFamily.js +10 -0
- package/lib/cjs/core/StatusFamily.js.map +1 -0
- package/lib/cjs/index.js +5 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/redirections/MovedPermanently.js +2 -2
- package/lib/cjs/redirections/MovedPermanently.js.map +1 -1
- package/lib/cjs/redirections/MovedTemporarily.js +2 -2
- package/lib/cjs/redirections/MovedTemporarily.js.map +1 -1
- package/lib/cjs/redirections/MultipleChoices.js +2 -2
- package/lib/cjs/redirections/MultipleChoices.js.map +1 -1
- package/lib/cjs/redirections/NotModified.js +2 -2
- package/lib/cjs/redirections/NotModified.js.map +1 -1
- package/lib/cjs/redirections/PermanentRedirect.js +2 -2
- package/lib/cjs/redirections/PermanentRedirect.js.map +1 -1
- package/lib/cjs/redirections/SeeOther.js +2 -2
- package/lib/cjs/redirections/SeeOther.js.map +1 -1
- package/lib/cjs/redirections/TemporaryRedirect.js +2 -2
- package/lib/cjs/redirections/TemporaryRedirect.js.map +1 -1
- package/lib/cjs/redirections/UseProxy.js +2 -2
- package/lib/cjs/redirections/UseProxy.js.map +1 -1
- package/lib/cjs/serverErrors/BadGateway.js +2 -2
- package/lib/cjs/serverErrors/BadGateway.js.map +1 -1
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js +2 -2
- package/lib/cjs/serverErrors/BandwidthLimitExceeded.js.map +1 -1
- package/lib/cjs/serverErrors/GatewayTimeout.js +2 -2
- package/lib/cjs/serverErrors/GatewayTimeout.js.map +1 -1
- package/lib/cjs/serverErrors/InternalServerError.js +2 -2
- package/lib/cjs/serverErrors/InternalServerError.js.map +1 -1
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js +2 -2
- package/lib/cjs/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
- package/lib/cjs/serverErrors/NotExtended.js +2 -2
- package/lib/cjs/serverErrors/NotExtended.js.map +1 -1
- package/lib/cjs/serverErrors/NotImplemented.js +2 -2
- package/lib/cjs/serverErrors/NotImplemented.js.map +1 -1
- package/lib/cjs/serverErrors/ProxyError.js +2 -2
- package/lib/cjs/serverErrors/ProxyError.js.map +1 -1
- package/lib/cjs/serverErrors/ServiceUnavailable.js +12 -0
- package/lib/cjs/serverErrors/ServiceUnavailable.js.map +1 -0
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js +2 -2
- package/lib/cjs/serverErrors/VariantAlsoNegotiates.js.map +1 -1
- package/lib/esm/clientErrors/BadMapping.js +2 -2
- package/lib/esm/clientErrors/BadMapping.js.map +1 -1
- package/lib/esm/clientErrors/BadRequest.js +2 -2
- package/lib/esm/clientErrors/BadRequest.js.map +1 -1
- package/lib/esm/clientErrors/Conflict.js +2 -2
- package/lib/esm/clientErrors/Conflict.js.map +1 -1
- package/lib/esm/clientErrors/ExpectationFailed.js +2 -2
- package/lib/esm/clientErrors/ExpectationFailed.js.map +1 -1
- package/lib/esm/clientErrors/Forbidden.js +2 -2
- package/lib/esm/clientErrors/Forbidden.js.map +1 -1
- package/lib/esm/clientErrors/Gone.js +2 -2
- package/lib/esm/clientErrors/Gone.js.map +1 -1
- package/lib/esm/clientErrors/ImATeapot.js +2 -2
- package/lib/esm/clientErrors/ImATeapot.js.map +1 -1
- package/lib/esm/clientErrors/LengthRequired.js +2 -2
- package/lib/esm/clientErrors/LengthRequired.js.map +1 -1
- package/lib/esm/clientErrors/MethodNotAllowed.js +2 -2
- package/lib/esm/clientErrors/MethodNotAllowed.js.map +1 -1
- package/lib/esm/clientErrors/MisdirectedRequest.js +2 -2
- package/lib/esm/clientErrors/MisdirectedRequest.js.map +1 -1
- package/lib/esm/clientErrors/NotAcceptable.js +2 -2
- package/lib/esm/clientErrors/NotAcceptable.js.map +1 -1
- package/lib/esm/clientErrors/NotFound.js +2 -2
- package/lib/esm/clientErrors/NotFound.js.map +1 -1
- package/lib/esm/clientErrors/PaymentRequired.js +2 -2
- package/lib/esm/clientErrors/PaymentRequired.js.map +1 -1
- package/lib/esm/clientErrors/PreconditionFailed.js +2 -2
- package/lib/esm/clientErrors/PreconditionFailed.js.map +1 -1
- package/lib/esm/clientErrors/PreconditionRequired.js +2 -2
- package/lib/esm/clientErrors/PreconditionRequired.js.map +1 -1
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js +2 -2
- package/lib/esm/clientErrors/ProxyAuthentificationRequired.js.map +1 -1
- package/lib/esm/clientErrors/RequestEntityTooLarge.js +2 -2
- package/lib/esm/clientErrors/RequestEntityTooLarge.js.map +1 -1
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js +2 -2
- package/lib/esm/clientErrors/RequestHeaderFieldsTooLarge.js.map +1 -1
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js +2 -2
- package/lib/esm/clientErrors/RequestRangeUnsatisfiable.js.map +1 -1
- package/lib/esm/clientErrors/RequestTimeout.js +2 -2
- package/lib/esm/clientErrors/RequestTimeout.js.map +1 -1
- package/lib/esm/clientErrors/RequestURITooLong.js +2 -2
- package/lib/esm/clientErrors/RequestURITooLong.js.map +1 -1
- package/lib/esm/clientErrors/TooManyRequests.js +2 -2
- package/lib/esm/clientErrors/TooManyRequests.js.map +1 -1
- package/lib/esm/clientErrors/Unauthorized.js +2 -2
- package/lib/esm/clientErrors/Unauthorized.js.map +1 -1
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js +2 -2
- package/lib/esm/clientErrors/UnavailableForLegalReasons.js.map +1 -1
- package/lib/esm/clientErrors/UnprocessableEntity.js +2 -2
- package/lib/esm/clientErrors/UnprocessableEntity.js.map +1 -1
- package/lib/esm/clientErrors/UnsupportedMediaType.js +2 -2
- package/lib/esm/clientErrors/UnsupportedMediaType.js.map +1 -1
- package/lib/esm/clientErrors/UpgradeRequired.js +2 -2
- package/lib/esm/clientErrors/UpgradeRequired.js.map +1 -1
- package/lib/esm/core/ClientException.js +8 -0
- package/lib/esm/core/ClientException.js.map +1 -0
- package/lib/esm/core/Exception.js +9 -0
- package/lib/esm/core/Exception.js.map +1 -1
- package/lib/esm/core/RedirectException.js +8 -0
- package/lib/esm/core/RedirectException.js.map +1 -0
- package/lib/esm/core/ServerException.js +8 -0
- package/lib/esm/core/ServerException.js.map +1 -0
- package/lib/esm/core/StatusFamily.js +7 -0
- package/lib/esm/core/StatusFamily.js.map +1 -0
- package/lib/esm/index.js +5 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/redirections/MovedPermanently.js +2 -2
- package/lib/esm/redirections/MovedPermanently.js.map +1 -1
- package/lib/esm/redirections/MovedTemporarily.js +2 -2
- package/lib/esm/redirections/MovedTemporarily.js.map +1 -1
- package/lib/esm/redirections/MultipleChoices.js +2 -2
- package/lib/esm/redirections/MultipleChoices.js.map +1 -1
- package/lib/esm/redirections/NotModified.js +2 -2
- package/lib/esm/redirections/NotModified.js.map +1 -1
- package/lib/esm/redirections/PermanentRedirect.js +2 -2
- package/lib/esm/redirections/PermanentRedirect.js.map +1 -1
- package/lib/esm/redirections/SeeOther.js +2 -2
- package/lib/esm/redirections/SeeOther.js.map +1 -1
- package/lib/esm/redirections/TemporaryRedirect.js +2 -2
- package/lib/esm/redirections/TemporaryRedirect.js.map +1 -1
- package/lib/esm/redirections/UseProxy.js +2 -2
- package/lib/esm/redirections/UseProxy.js.map +1 -1
- package/lib/esm/serverErrors/BadGateway.js +2 -2
- package/lib/esm/serverErrors/BadGateway.js.map +1 -1
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js +2 -2
- package/lib/esm/serverErrors/BandwidthLimitExceeded.js.map +1 -1
- package/lib/esm/serverErrors/GatewayTimeout.js +2 -2
- package/lib/esm/serverErrors/GatewayTimeout.js.map +1 -1
- package/lib/esm/serverErrors/InternalServerError.js +2 -2
- package/lib/esm/serverErrors/InternalServerError.js.map +1 -1
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js +2 -2
- package/lib/esm/serverErrors/NetworkAuthenticationRequired.js.map +1 -1
- package/lib/esm/serverErrors/NotExtended.js +2 -2
- package/lib/esm/serverErrors/NotExtended.js.map +1 -1
- package/lib/esm/serverErrors/NotImplemented.js +2 -2
- package/lib/esm/serverErrors/NotImplemented.js.map +1 -1
- package/lib/esm/serverErrors/ProxyError.js +2 -2
- package/lib/esm/serverErrors/ProxyError.js.map +1 -1
- package/lib/esm/serverErrors/ServiceUnavailable.js +8 -0
- package/lib/esm/serverErrors/ServiceUnavailable.js.map +1 -0
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js +2 -2
- package/lib/esm/serverErrors/VariantAlsoNegotiates.js.map +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/clientErrors/BadMapping.d.ts +2 -2
- package/lib/types/clientErrors/BadRequest.d.ts +2 -2
- package/lib/types/clientErrors/Conflict.d.ts +2 -2
- package/lib/types/clientErrors/ExpectationFailed.d.ts +2 -2
- package/lib/types/clientErrors/Forbidden.d.ts +2 -2
- package/lib/types/clientErrors/Gone.d.ts +2 -2
- package/lib/types/clientErrors/ImATeapot.d.ts +2 -2
- package/lib/types/clientErrors/LengthRequired.d.ts +2 -2
- package/lib/types/clientErrors/MethodNotAllowed.d.ts +2 -2
- package/lib/types/clientErrors/MisdirectedRequest.d.ts +2 -2
- package/lib/types/clientErrors/NotAcceptable.d.ts +2 -2
- package/lib/types/clientErrors/NotFound.d.ts +2 -2
- package/lib/types/clientErrors/PaymentRequired.d.ts +2 -2
- package/lib/types/clientErrors/PreconditionFailed.d.ts +2 -2
- package/lib/types/clientErrors/PreconditionRequired.d.ts +2 -2
- package/lib/types/clientErrors/ProxyAuthentificationRequired.d.ts +2 -2
- package/lib/types/clientErrors/RequestEntityTooLarge.d.ts +2 -2
- package/lib/types/clientErrors/RequestHeaderFieldsTooLarge.d.ts +2 -2
- package/lib/types/clientErrors/RequestRangeUnsatisfiable.d.ts +2 -2
- package/lib/types/clientErrors/RequestTimeout.d.ts +2 -2
- package/lib/types/clientErrors/RequestURITooLong.d.ts +2 -2
- package/lib/types/clientErrors/TooManyRequests.d.ts +2 -2
- package/lib/types/clientErrors/Unauthorized.d.ts +2 -2
- package/lib/types/clientErrors/UnavailableForLegalReasons.d.ts +2 -2
- package/lib/types/clientErrors/UnprocessableEntity.d.ts +2 -2
- package/lib/types/clientErrors/UnsupportedMediaType.d.ts +2 -2
- package/lib/types/clientErrors/UpgradeRequired.d.ts +2 -2
- package/lib/types/core/ClientException.d.ts +4 -0
- package/lib/types/core/Exception.d.ts +2 -0
- package/lib/types/core/RedirectException.d.ts +4 -0
- package/lib/types/core/ServerException.d.ts +4 -0
- package/lib/types/core/StatusFamily.d.ts +5 -0
- package/lib/types/index.d.ts +5 -1
- package/lib/types/redirections/MovedPermanently.d.ts +2 -2
- package/lib/types/redirections/MovedTemporarily.d.ts +2 -2
- package/lib/types/redirections/MultipleChoices.d.ts +2 -2
- package/lib/types/redirections/NotModified.d.ts +2 -2
- package/lib/types/redirections/PermanentRedirect.d.ts +2 -2
- package/lib/types/redirections/SeeOther.d.ts +2 -2
- package/lib/types/redirections/TemporaryRedirect.d.ts +2 -2
- package/lib/types/redirections/UseProxy.d.ts +2 -2
- package/lib/types/serverErrors/BadGateway.d.ts +2 -2
- package/lib/types/serverErrors/BandwidthLimitExceeded.d.ts +2 -2
- package/lib/types/serverErrors/GatewayTimeout.d.ts +2 -2
- package/lib/types/serverErrors/InternalServerError.d.ts +2 -2
- package/lib/types/serverErrors/NetworkAuthenticationRequired.d.ts +2 -2
- package/lib/types/serverErrors/NotExtended.d.ts +2 -2
- package/lib/types/serverErrors/NotImplemented.d.ts +2 -2
- package/lib/types/serverErrors/ProxyError.d.ts +2 -2
- package/lib/types/serverErrors/ServiceUnavailable.d.ts +5 -0
- package/lib/types/serverErrors/VariantAlsoNegotiates.d.ts +2 -2
- package/package.json +2 -2
- package/lib/cjs/serverErrors/ServiceUnvailable.js +0 -12
- package/lib/cjs/serverErrors/ServiceUnvailable.js.map +0 -1
- package/lib/esm/serverErrors/ServiceUnvailable.js +0 -8
- package/lib/esm/serverErrors/ServiceUnvailable.js.map +0 -1
- package/lib/types/serverErrors/ServiceUnvailable.d.ts +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class Gone extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class Gone extends ClientException {
|
|
3
3
|
static readonly STATUS = 410;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ImATeapot extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class ImATeapot extends ClientException {
|
|
3
3
|
static readonly STATUS = 418;
|
|
4
4
|
name: string;
|
|
5
5
|
constructor(message: string, origin?: Error | string | any);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class LengthRequired extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class LengthRequired extends ClientException {
|
|
3
3
|
static readonly STATUS = 411;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MethodNotAllowed extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class MethodNotAllowed extends ClientException {
|
|
3
3
|
static readonly STATUS = 405;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MisdirectedRequest extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class MisdirectedRequest extends ClientException {
|
|
3
3
|
static readonly STATUS = 421;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotAcceptable extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class NotAcceptable extends ClientException {
|
|
3
3
|
static readonly STATUS = 406;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotFound extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class NotFound extends ClientException {
|
|
3
3
|
static readonly STATUS = 404;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class PaymentRequired extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class PaymentRequired extends ClientException {
|
|
3
3
|
static readonly STATUS = 402;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class PreconditionFailed extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class PreconditionFailed extends ClientException {
|
|
3
3
|
static readonly STATUS = 412;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class PreconditionRequired extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class PreconditionRequired extends ClientException {
|
|
3
3
|
static readonly STATUS = 428;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ProxyAuthentificationRequired extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class ProxyAuthentificationRequired extends ClientException {
|
|
3
3
|
static readonly STATUS = 407;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestEntityTooLarge extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class RequestEntityTooLarge extends ClientException {
|
|
3
3
|
static readonly STATUS = 413;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestHeaderFieldsTooLarge extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class RequestHeaderFieldsTooLarge extends ClientException {
|
|
3
3
|
static readonly STATUS = 431;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestRangeUnsatisfiable extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class RequestRangeUnsatisfiable extends ClientException {
|
|
3
3
|
static readonly STATUS = 416;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestTimeout extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class RequestTimeout extends ClientException {
|
|
3
3
|
static readonly STATUS = 408;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RequestURITooLong extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class RequestURITooLong extends ClientException {
|
|
3
3
|
static readonly STATUS = 414;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class TooManyRequests extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class TooManyRequests extends ClientException {
|
|
3
3
|
static readonly STATUS = 429;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class Unauthorized extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class Unauthorized extends ClientException {
|
|
3
3
|
static readonly STATUS = 401;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UnavailableForLegalReasons extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class UnavailableForLegalReasons extends ClientException {
|
|
3
3
|
static readonly STATUS = 451;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UnprocessableEntity extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class UnprocessableEntity extends ClientException {
|
|
3
3
|
static readonly STATUS = 422;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UnsupportedMediaType extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class UnsupportedMediaType extends ClientException {
|
|
3
3
|
static readonly STATUS = 415;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UpgradeRequired extends
|
|
1
|
+
import { ClientException } from "../core/ClientException";
|
|
2
|
+
export declare class UpgradeRequired extends ClientException {
|
|
3
3
|
static readonly STATUS = 426;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StatusFamily } from "./StatusFamily";
|
|
1
2
|
export declare class Exception extends Error {
|
|
2
3
|
#private;
|
|
3
4
|
/**
|
|
@@ -34,6 +35,7 @@ export declare class Exception extends Error {
|
|
|
34
35
|
[key: string]: any;
|
|
35
36
|
};
|
|
36
37
|
[key: string]: any;
|
|
38
|
+
static validate(status: number, family: StatusFamily): number;
|
|
37
39
|
constructor(status?: number, message?: string, origin?: Error | string | any);
|
|
38
40
|
setHeaders(headers: {
|
|
39
41
|
[key: string]: any;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -28,7 +28,11 @@ export * from "./clientErrors/UnavailableForLegalReasons";
|
|
|
28
28
|
export * from "./clientErrors/UnprocessableEntity";
|
|
29
29
|
export * from "./clientErrors/UnsupportedMediaType";
|
|
30
30
|
export * from "./clientErrors/UpgradeRequired";
|
|
31
|
+
export * from "./core/ClientException";
|
|
31
32
|
export * from "./core/Exception";
|
|
33
|
+
export * from "./core/RedirectException";
|
|
34
|
+
export * from "./core/ServerException";
|
|
35
|
+
export * from "./core/StatusFamily";
|
|
32
36
|
export * from "./redirections/MovedPermanently";
|
|
33
37
|
export * from "./redirections/MovedTemporarily";
|
|
34
38
|
export * from "./redirections/MultipleChoices";
|
|
@@ -45,5 +49,5 @@ export * from "./serverErrors/NetworkAuthenticationRequired";
|
|
|
45
49
|
export * from "./serverErrors/NotExtended";
|
|
46
50
|
export * from "./serverErrors/NotImplemented";
|
|
47
51
|
export * from "./serverErrors/ProxyError";
|
|
48
|
-
export * from "./serverErrors/
|
|
52
|
+
export * from "./serverErrors/ServiceUnavailable";
|
|
49
53
|
export * from "./serverErrors/VariantAlsoNegotiates";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MovedPermanently extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class MovedPermanently extends RedirectException {
|
|
3
3
|
static readonly STATUS = 301;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MovedTemporarily extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class MovedTemporarily extends RedirectException {
|
|
3
3
|
static readonly STATUS = 302;
|
|
4
4
|
name: string;
|
|
5
5
|
constructor(message: string, origin?: Error | string | any);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class MultipleChoices extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class MultipleChoices extends RedirectException {
|
|
3
3
|
static readonly STATUS = 300;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotModified extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class NotModified extends RedirectException {
|
|
3
3
|
static readonly STATUS = 304;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class PermanentRedirect extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class PermanentRedirect extends RedirectException {
|
|
3
3
|
static readonly STATUS = 308;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class SeeOther extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class SeeOther extends RedirectException {
|
|
3
3
|
static readonly STATUS = 303;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class TemporaryRedirect extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class TemporaryRedirect extends RedirectException {
|
|
3
3
|
static readonly STATUS = 307;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class UseProxy extends
|
|
1
|
+
import { RedirectException } from "../core/RedirectException";
|
|
2
|
+
export declare class UseProxy extends RedirectException {
|
|
3
3
|
static readonly STATUS = 305;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BadGateway extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class BadGateway extends ServerException {
|
|
3
3
|
static readonly STATUS = 502;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BandwidthLimitExceeded extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class BandwidthLimitExceeded extends ServerException {
|
|
3
3
|
static readonly STATUS = 509;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class GatewayTimeout extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class GatewayTimeout extends ServerException {
|
|
3
3
|
static readonly STATUS = 504;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class InternalServerError extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class InternalServerError extends ServerException {
|
|
3
3
|
static readonly STATUS = 500;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NetworkAuthenticationRequired extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class NetworkAuthenticationRequired extends ServerException {
|
|
3
3
|
static readonly STATUS = 511;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotExtended extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class NotExtended extends ServerException {
|
|
3
3
|
static readonly STATUS = 510;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class NotImplemented extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class NotImplemented extends ServerException {
|
|
3
3
|
static readonly STATUS = 501;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ProxyError extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class ProxyError extends ServerException {
|
|
3
3
|
static readonly STATUS = 502;
|
|
4
4
|
name: string;
|
|
5
5
|
constructor(message: string, origin?: Error | string | any);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class VariantAlsoNegotiates extends
|
|
1
|
+
import { ServerException } from "../core/ServerException";
|
|
2
|
+
export declare class VariantAlsoNegotiates extends ServerException {
|
|
3
3
|
static readonly STATUS = 506;
|
|
4
4
|
constructor(message: string, origin?: Error | string | any);
|
|
5
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/exceptions",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.41.1",
|
|
4
4
|
"description": "HTTP exceptions module for Ts.ED Framework and other pure Express application",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"eslint": "^8.12.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@tsed/core": "^7.
|
|
36
|
+
"@tsed/core": "^7.41.1"
|
|
37
37
|
},
|
|
38
38
|
"repository": "https://github.com/tsedio/tsed",
|
|
39
39
|
"bugs": {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceUnvailable = void 0;
|
|
4
|
-
const Exception_1 = require("../core/Exception");
|
|
5
|
-
class ServiceUnvailable extends Exception_1.Exception {
|
|
6
|
-
static STATUS = 503;
|
|
7
|
-
constructor(message, origin) {
|
|
8
|
-
super(ServiceUnvailable.STATUS, message, origin);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.ServiceUnvailable = ServiceUnvailable;
|
|
12
|
-
//# sourceMappingURL=ServiceUnvailable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAE5C,MAAa,iBAAkB,SAAQ,qBAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;;AALH,8CAMC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Exception } from "../core/Exception.js";
|
|
2
|
-
export class ServiceUnvailable extends Exception {
|
|
3
|
-
static STATUS = 503;
|
|
4
|
-
constructor(message, origin) {
|
|
5
|
-
super(ServiceUnvailable.STATUS, message, origin);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=ServiceUnvailable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceUnvailable.js","sourceRoot":"","sources":["../../../src/serverErrors/ServiceUnvailable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,CAAU,MAAM,GAAG,GAAG,CAAC;IAE7B,YAAY,OAAe,EAAE,MAA6B;QACxD,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC"}
|