@zudojs/errors 1.3.1 → 1.4.0
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/README.md +1 -0
- package/dist/base/core/baseError.core.d.ts +6 -1
- package/dist/base/core/baseError.core.js +6 -1
- package/dist/base/core/baseError.serialize.d.ts +0 -1
- package/dist/base/core/baseError.serialize.js +0 -1
- package/dist/base/core/errorCause.redact.d.ts +0 -1
- package/dist/base/core/errorCause.redact.js +0 -1
- package/dist/base/core/errorMetadata.core.d.ts +0 -1
- package/dist/base/core/errorMetadata.core.js +0 -1
- package/dist/base/core/errorMetadata.type.d.ts +0 -1
- package/dist/base/core/errorMetadata.type.js +0 -1
- package/dist/base/core/index.d.ts +0 -1
- package/dist/base/core/index.js +0 -1
- package/dist/base/index.d.ts +0 -1
- package/dist/base/index.js +0 -1
- package/dist/base/types/baseError.type.d.ts +6 -1
- package/dist/base/types/baseError.type.js +0 -1
- package/dist/base/types/errorCategory.enum.d.ts +0 -1
- package/dist/base/types/errorCategory.enum.js +0 -1
- package/dist/base/types/errorCategory.helpers.d.ts +0 -1
- package/dist/base/types/errorCategory.helpers.js +0 -1
- package/dist/base/types/errorCategory.type.d.ts +0 -1
- package/dist/base/types/errorCategory.type.js +0 -1
- package/dist/base/types/errorCode.type.d.ts +0 -1
- package/dist/base/types/errorCode.type.js +0 -1
- package/dist/base/types/errorSeverity.type.d.ts +0 -1
- package/dist/base/types/errorSeverity.type.js +0 -1
- package/dist/base/types/index.d.ts +0 -1
- package/dist/base/types/index.js +0 -1
- package/dist/base/utils/baseError.utils.d.ts +0 -1
- package/dist/base/utils/baseError.utils.js +0 -1
- package/dist/base/utils/index.d.ts +0 -1
- package/dist/base/utils/index.js +0 -1
- package/dist/domain/access/authError.base.d.ts +0 -1
- package/dist/domain/access/authError.base.js +0 -1
- package/dist/domain/access/authentication.error.d.ts +0 -1
- package/dist/domain/access/authentication.error.js +0 -1
- package/dist/domain/access/authorization.error.d.ts +0 -1
- package/dist/domain/access/authorization.error.js +0 -1
- package/dist/domain/access/index.d.ts +0 -1
- package/dist/domain/access/index.js +0 -1
- package/dist/domain/access/oauthError.base.d.ts +0 -1
- package/dist/domain/access/oauthError.base.js +0 -1
- package/dist/domain/access/rateLimit.error.d.ts +0 -1
- package/dist/domain/access/rateLimit.error.js +0 -1
- package/dist/domain/api/api.error.d.ts +0 -1
- package/dist/domain/api/api.error.js +0 -1
- package/dist/domain/api/apiError.base.d.ts +0 -1
- package/dist/domain/api/apiError.base.js +0 -1
- package/dist/domain/api/apiError.lifecycle.d.ts +0 -1
- package/dist/domain/api/apiError.lifecycle.js +0 -1
- package/dist/domain/api/apiError.routing.d.ts +0 -1
- package/dist/domain/api/apiError.routing.js +0 -1
- package/dist/domain/api/index.d.ts +0 -1
- package/dist/domain/api/index.js +0 -1
- package/dist/domain/app/application.error.d.ts +0 -1
- package/dist/domain/app/application.error.js +0 -1
- package/dist/domain/app/configuration.error.d.ts +0 -1
- package/dist/domain/app/configuration.error.js +0 -1
- package/dist/domain/app/domain.error.d.ts +0 -1
- package/dist/domain/app/domain.error.js +0 -1
- package/dist/domain/app/index.d.ts +0 -1
- package/dist/domain/app/index.js +0 -1
- package/dist/domain/app/lifecycle.error.d.ts +0 -1
- package/dist/domain/app/lifecycle.error.js +0 -1
- package/dist/domain/app/lifecycleError.base.d.ts +0 -1
- package/dist/domain/app/lifecycleError.base.js +0 -1
- package/dist/domain/app/lifecycleError.types.d.ts +0 -1
- package/dist/domain/app/lifecycleError.types.js +0 -1
- package/dist/domain/app/module.error.d.ts +0 -1
- package/dist/domain/app/module.error.js +0 -1
- package/dist/domain/app/moduleError.base.d.ts +0 -1
- package/dist/domain/app/moduleError.base.js +0 -1
- package/dist/domain/app/moduleError.types.d.ts +0 -1
- package/dist/domain/app/moduleError.types.js +0 -1
- package/dist/domain/body/bodyParser.error.d.ts +0 -1
- package/dist/domain/body/bodyParser.error.js +0 -1
- package/dist/domain/body/httpBody.error.d.ts +0 -1
- package/dist/domain/body/httpBody.error.js +0 -1
- package/dist/domain/body/httpBodyError.base.d.ts +0 -1
- package/dist/domain/body/httpBodyError.base.js +0 -1
- package/dist/domain/body/httpBodyError.types.d.ts +0 -1
- package/dist/domain/body/httpBodyError.types.js +0 -1
- package/dist/domain/body/httpFormData.error.d.ts +0 -1
- package/dist/domain/body/httpFormData.error.js +0 -1
- package/dist/domain/body/index.d.ts +0 -1
- package/dist/domain/body/index.js +0 -1
- package/dist/domain/body/multipart.error.d.ts +0 -1
- package/dist/domain/body/multipart.error.js +0 -1
- package/dist/domain/cli/cliError.base.d.ts +0 -1
- package/dist/domain/cli/cliError.base.js +0 -1
- package/dist/domain/cli/index.d.ts +0 -1
- package/dist/domain/cli/index.js +0 -1
- package/dist/domain/constant/constantError.base.d.ts +0 -1
- package/dist/domain/constant/constantError.base.js +0 -1
- package/dist/domain/constant/index.d.ts +0 -1
- package/dist/domain/constant/index.js +0 -1
- package/dist/domain/cqrs/cqrsError.base.d.ts +0 -1
- package/dist/domain/cqrs/cqrsError.base.js +0 -1
- package/dist/domain/cqrs/cqrsError.result.d.ts +0 -1
- package/dist/domain/cqrs/cqrsError.result.js +0 -1
- package/dist/domain/cqrs/index.d.ts +0 -1
- package/dist/domain/cqrs/index.js +0 -1
- package/dist/domain/documentation/documentation.error.d.ts +0 -1
- package/dist/domain/documentation/documentation.error.js +0 -1
- package/dist/domain/documentation/documentationError.base.d.ts +0 -1
- package/dist/domain/documentation/documentationError.base.js +0 -1
- package/dist/domain/documentation/documentationError.types.d.ts +0 -1
- package/dist/domain/documentation/documentationError.types.js +0 -1
- package/dist/domain/documentation/index.d.ts +0 -1
- package/dist/domain/documentation/index.js +0 -1
- package/dist/domain/event/event.error.d.ts +0 -1
- package/dist/domain/event/event.error.js +0 -1
- package/dist/domain/event/eventError.base.d.ts +0 -1
- package/dist/domain/event/eventError.base.js +0 -1
- package/dist/domain/event/eventError.handler.d.ts +0 -1
- package/dist/domain/event/eventError.handler.js +0 -1
- package/dist/domain/event/eventError.lifecycle.d.ts +0 -1
- package/dist/domain/event/eventError.lifecycle.js +0 -1
- package/dist/domain/event/eventError.serialization.d.ts +0 -1
- package/dist/domain/event/eventError.serialization.js +0 -1
- package/dist/domain/event/index.d.ts +0 -1
- package/dist/domain/event/index.js +0 -1
- package/dist/domain/index.d.ts +0 -1
- package/dist/domain/index.js +0 -1
- package/dist/domain/message/index.d.ts +0 -1
- package/dist/domain/message/index.js +0 -1
- package/dist/domain/message/message.error.d.ts +0 -1
- package/dist/domain/message/message.error.js +0 -1
- package/dist/domain/message/messageError.base.d.ts +0 -1
- package/dist/domain/message/messageError.base.js +0 -1
- package/dist/domain/message/messageError.handler.d.ts +0 -1
- package/dist/domain/message/messageError.handler.js +0 -1
- package/dist/domain/message/messageError.lifecycle.d.ts +0 -1
- package/dist/domain/message/messageError.lifecycle.js +0 -1
- package/dist/domain/message/messageError.serialization.d.ts +0 -1
- package/dist/domain/message/messageError.serialization.js +0 -1
- package/dist/domain/message/messageError.validation.d.ts +0 -1
- package/dist/domain/message/messageError.validation.js +0 -1
- package/dist/domain/openapi/index.d.ts +0 -1
- package/dist/domain/openapi/index.js +0 -1
- package/dist/domain/openapi/openApiError.base.d.ts +0 -1
- package/dist/domain/openapi/openApiError.base.js +0 -1
- package/dist/domain/plugin/index.d.ts +0 -1
- package/dist/domain/plugin/index.js +0 -1
- package/dist/domain/plugin/plugin.error.d.ts +0 -1
- package/dist/domain/plugin/plugin.error.js +0 -1
- package/dist/domain/plugin/pluginError.base.d.ts +0 -1
- package/dist/domain/plugin/pluginError.base.js +0 -1
- package/dist/domain/plugin/pluginError.lifecycle.d.ts +0 -1
- package/dist/domain/plugin/pluginError.lifecycle.js +0 -1
- package/dist/domain/plugin/pluginError.runtime.d.ts +0 -1
- package/dist/domain/plugin/pluginError.runtime.js +0 -1
- package/dist/domain/queue/index.d.ts +0 -1
- package/dist/domain/queue/index.js +0 -1
- package/dist/domain/queue/queue.error.d.ts +0 -1
- package/dist/domain/queue/queue.error.js +0 -1
- package/dist/domain/queue/queueError.base.d.ts +0 -1
- package/dist/domain/queue/queueError.base.js +0 -1
- package/dist/domain/queue/queueError.job.d.ts +0 -1
- package/dist/domain/queue/queueError.job.js +0 -1
- package/dist/domain/queue/queueError.queue.d.ts +0 -1
- package/dist/domain/queue/queueError.queue.js +0 -1
- package/dist/domain/queue/queueError.worker.d.ts +0 -1
- package/dist/domain/queue/queueError.worker.js +0 -1
- package/dist/domain/rpc/index.d.ts +0 -1
- package/dist/domain/rpc/index.js +0 -1
- package/dist/domain/rpc/rpc.error.d.ts +0 -1
- package/dist/domain/rpc/rpc.error.js +0 -1
- package/dist/domain/rpc/rpcError.base.d.ts +0 -1
- package/dist/domain/rpc/rpcError.base.js +0 -1
- package/dist/domain/rpc/rpcError.protocol.d.ts +0 -1
- package/dist/domain/rpc/rpcError.protocol.js +0 -1
- package/dist/domain/rpc/rpcError.transport.d.ts +0 -1
- package/dist/domain/rpc/rpcError.transport.js +0 -1
- package/dist/domain/scheduler/index.d.ts +0 -1
- package/dist/domain/scheduler/index.js +0 -1
- package/dist/domain/scheduler/scheduler.error.d.ts +0 -1
- package/dist/domain/scheduler/scheduler.error.js +0 -1
- package/dist/domain/scheduler/schedulerError.base.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.base.js +0 -1
- package/dist/domain/scheduler/schedulerError.execution.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.execution.js +0 -1
- package/dist/domain/scheduler/schedulerError.schedule.d.ts +0 -1
- package/dist/domain/scheduler/schedulerError.schedule.js +0 -1
- package/dist/domain/schema/index.d.ts +0 -1
- package/dist/domain/schema/index.js +0 -1
- package/dist/domain/schema/schema.error.d.ts +0 -1
- package/dist/domain/schema/schema.error.js +0 -1
- package/dist/domain/schema/schemaError.base.d.ts +0 -1
- package/dist/domain/schema/schemaError.base.js +0 -1
- package/dist/domain/schema/schemaError.types.d.ts +0 -1
- package/dist/domain/schema/schemaError.types.js +0 -1
- package/dist/domain/serialization/index.d.ts +0 -1
- package/dist/domain/serialization/index.js +0 -1
- package/dist/domain/serialization/serialization.error.d.ts +2 -2
- package/dist/domain/serialization/serialization.error.js +2 -2
- package/dist/domain/serialization/serializationError.base.d.ts +0 -1
- package/dist/domain/serialization/serializationError.base.js +0 -1
- package/dist/domain/serialization/serializationError.limits.d.ts +51 -0
- package/dist/domain/serialization/serializationError.limits.js +70 -0
- package/dist/domain/serialization/serializationError.types.d.ts +0 -30
- package/dist/domain/serialization/serializationError.types.js +0 -50
- package/dist/domain/shared/domainError.helpers.d.ts +0 -1
- package/dist/domain/shared/domainError.helpers.js +0 -1
- package/dist/domain/state/conflict.error.d.ts +0 -1
- package/dist/domain/state/conflict.error.js +0 -1
- package/dist/domain/state/index.d.ts +0 -1
- package/dist/domain/state/index.js +0 -1
- package/dist/domain/state/notFound.error.d.ts +0 -1
- package/dist/domain/state/notFound.error.js +0 -1
- package/dist/domain/state/validation.error.d.ts +0 -1
- package/dist/domain/state/validation.error.js +0 -1
- package/dist/domain/state/validationError.base.d.ts +0 -1
- package/dist/domain/state/validationError.base.js +0 -1
- package/dist/domain/state/validationError.helpers.d.ts +0 -1
- package/dist/domain/state/validationError.helpers.js +0 -1
- package/dist/domain/transaction/index.d.ts +0 -1
- package/dist/domain/transaction/index.js +0 -1
- package/dist/domain/transaction/transactionError.base.d.ts +0 -1
- package/dist/domain/transaction/transactionError.base.js +0 -1
- package/dist/domain/transaction/transactionError.misc.d.ts +0 -1
- package/dist/domain/transaction/transactionError.misc.js +0 -1
- package/dist/domain/transaction/transactionError.types.d.ts +0 -1
- package/dist/domain/transaction/transactionError.types.js +0 -1
- package/dist/domain/traversal/index.d.ts +0 -1
- package/dist/domain/traversal/index.js +0 -1
- package/dist/domain/traversal/traversalLimit.error.d.ts +0 -1
- package/dist/domain/traversal/traversalLimit.error.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/infrastructure/adapter/adapter.error.d.ts +0 -1
- package/dist/infrastructure/adapter/adapter.error.js +0 -1
- package/dist/infrastructure/adapter/adapterError.base.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.base.js +0 -1
- package/dist/infrastructure/adapter/adapterError.lifecycle.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.lifecycle.js +0 -1
- package/dist/infrastructure/adapter/adapterError.operation.d.ts +0 -1
- package/dist/infrastructure/adapter/adapterError.operation.js +2 -3
- package/dist/infrastructure/adapter/index.d.ts +0 -1
- package/dist/infrastructure/adapter/index.js +0 -1
- package/dist/infrastructure/cache/cache.error.d.ts +0 -1
- package/dist/infrastructure/cache/cache.error.js +0 -1
- package/dist/infrastructure/cache/cacheError.base.d.ts +0 -1
- package/dist/infrastructure/cache/cacheError.base.js +0 -1
- package/dist/infrastructure/cache/cacheError.factory.d.ts +0 -1
- package/dist/infrastructure/cache/cacheError.factory.js +0 -1
- package/dist/infrastructure/cache/index.d.ts +0 -1
- package/dist/infrastructure/cache/index.js +0 -1
- package/dist/infrastructure/container/container.error.d.ts +0 -1
- package/dist/infrastructure/container/container.error.js +0 -1
- package/dist/infrastructure/container/containerError.base.d.ts +0 -1
- package/dist/infrastructure/container/containerError.base.js +0 -1
- package/dist/infrastructure/container/containerError.registration.d.ts +0 -1
- package/dist/infrastructure/container/containerError.registration.js +0 -1
- package/dist/infrastructure/container/index.d.ts +0 -1
- package/dist/infrastructure/container/index.js +0 -1
- package/dist/infrastructure/httpPipeline/httpMiddleware.error.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/httpMiddleware.error.js +0 -1
- package/dist/infrastructure/httpPipeline/httpRequestGuard.error.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/httpRequestGuard.error.js +0 -1
- package/dist/infrastructure/httpPipeline/index.d.ts +0 -1
- package/dist/infrastructure/httpPipeline/index.js +0 -1
- package/dist/infrastructure/index.d.ts +0 -1
- package/dist/infrastructure/index.js +0 -1
- package/dist/infrastructure/middleware/index.d.ts +0 -1
- package/dist/infrastructure/middleware/index.js +0 -1
- package/dist/infrastructure/middleware/middleware.error.d.ts +0 -1
- package/dist/infrastructure/middleware/middleware.error.js +3 -1
- package/dist/infrastructure/middleware/middlewareError.types.d.ts +8 -3
- package/dist/infrastructure/middleware/middlewareError.types.js +27 -4
- package/dist/infrastructure/network/http.error.d.ts +0 -1
- package/dist/infrastructure/network/http.error.js +0 -1
- package/dist/infrastructure/network/httpAdapter.error.d.ts +0 -1
- package/dist/infrastructure/network/httpAdapter.error.js +0 -1
- package/dist/infrastructure/network/httpClient.errors.d.ts +0 -1
- package/dist/infrastructure/network/httpClient.errors.js +0 -1
- package/dist/infrastructure/network/httpClientError.advanced.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.advanced.js +0 -1
- package/dist/infrastructure/network/httpClientError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.base.js +0 -1
- package/dist/infrastructure/network/httpClientError.common.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.common.js +0 -1
- package/dist/infrastructure/network/httpClientError.error.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.error.js +0 -1
- package/dist/infrastructure/network/httpClientError.options.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.options.js +0 -1
- package/dist/infrastructure/network/httpClientError.specialized.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.specialized.js +0 -1
- package/dist/infrastructure/network/httpClientError.types.d.ts +0 -1
- package/dist/infrastructure/network/httpClientError.types.js +0 -1
- package/dist/infrastructure/network/httpError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpError.base.js +0 -1
- package/dist/infrastructure/network/httpError.helpers.d.ts +0 -1
- package/dist/infrastructure/network/httpError.helpers.js +0 -1
- package/dist/infrastructure/network/httpResponse.error.d.ts +0 -1
- package/dist/infrastructure/network/httpResponse.error.js +0 -1
- package/dist/infrastructure/network/httpRouter.error.d.ts +0 -1
- package/dist/infrastructure/network/httpRouter.error.js +0 -1
- package/dist/infrastructure/network/httpRouterError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpRouterError.base.js +0 -1
- package/dist/infrastructure/network/httpRouterError.types.d.ts +22 -2
- package/dist/infrastructure/network/httpRouterError.types.js +24 -4
- package/dist/infrastructure/network/httpServerError.error.d.ts +7 -1
- package/dist/infrastructure/network/httpServerError.error.js +8 -2
- package/dist/infrastructure/network/httpServerLifecycle.error.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycle.error.js +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.base.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.base.js +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.types.d.ts +0 -1
- package/dist/infrastructure/network/httpServerLifecycleError.types.js +0 -1
- package/dist/infrastructure/network/httpStream.error.d.ts +0 -1
- package/dist/infrastructure/network/httpStream.error.js +0 -1
- package/dist/infrastructure/network/index.d.ts +0 -1
- package/dist/infrastructure/network/index.js +0 -1
- package/dist/infrastructure/network/network.error.d.ts +0 -1
- package/dist/infrastructure/network/network.error.js +0 -1
- package/dist/infrastructure/network/networkError.base.d.ts +0 -1
- package/dist/infrastructure/network/networkError.base.js +0 -1
- package/dist/infrastructure/network/networkError.factory.d.ts +0 -1
- package/dist/infrastructure/network/networkError.factory.js +0 -1
- package/dist/infrastructure/network/routePattern.error.d.ts +0 -1
- package/dist/infrastructure/network/routePattern.error.js +0 -1
- package/dist/infrastructure/network/timeout.error.d.ts +0 -1
- package/dist/infrastructure/network/timeout.error.js +0 -1
- package/dist/infrastructure/network/timeoutError.base.d.ts +0 -1
- package/dist/infrastructure/network/timeoutError.base.js +0 -1
- package/dist/infrastructure/network/timeoutError.factory.d.ts +0 -1
- package/dist/infrastructure/network/timeoutError.factory.js +0 -1
- package/dist/infrastructure/service/externalService.error.d.ts +0 -1
- package/dist/infrastructure/service/externalService.error.js +0 -1
- package/dist/infrastructure/service/externalServiceError.base.d.ts +9 -3
- package/dist/infrastructure/service/externalServiceError.base.js +20 -3
- package/dist/infrastructure/service/externalServiceError.factory.d.ts +0 -1
- package/dist/infrastructure/service/externalServiceError.factory.js +0 -1
- package/dist/infrastructure/service/index.d.ts +0 -1
- package/dist/infrastructure/service/index.js +0 -1
- package/dist/infrastructure/service/service.error.d.ts +0 -1
- package/dist/infrastructure/service/service.error.js +0 -1
- package/dist/infrastructure/service/serviceError.base.d.ts +0 -1
- package/dist/infrastructure/service/serviceError.base.js +0 -1
- package/dist/infrastructure/service/serviceError.factory.d.ts +0 -1
- package/dist/infrastructure/service/serviceError.factory.js +0 -1
- package/dist/infrastructure/storage/database.error.d.ts +0 -1
- package/dist/infrastructure/storage/database.error.js +0 -1
- package/dist/infrastructure/storage/databaseError.base.d.ts +0 -1
- package/dist/infrastructure/storage/databaseError.base.js +0 -1
- package/dist/infrastructure/storage/databaseError.factory.d.ts +0 -1
- package/dist/infrastructure/storage/databaseError.factory.js +0 -1
- package/dist/infrastructure/storage/index.d.ts +0 -1
- package/dist/infrastructure/storage/index.js +0 -1
- package/dist/infrastructure/storage/storage.error.d.ts +0 -1
- package/dist/infrastructure/storage/storage.error.js +0 -1
- package/dist/infrastructure/storage/storageError.base.d.ts +0 -1
- package/dist/infrastructure/storage/storageError.base.js +0 -1
- package/dist/infrastructure/storage/storageError.factory.d.ts +0 -1
- package/dist/infrastructure/storage/storageError.factory.js +0 -1
- package/dist/system/crypto.error.d.ts +0 -1
- package/dist/system/crypto.error.js +0 -1
- package/dist/system/cryptoError.base.d.ts +0 -1
- package/dist/system/cryptoError.base.js +0 -1
- package/dist/system/cryptoError.factory.d.ts +0 -1
- package/dist/system/cryptoError.factory.js +0 -1
- package/dist/system/index.d.ts +0 -1
- package/dist/system/index.js +0 -1
- package/dist/system/logging/index.d.ts +0 -1
- package/dist/system/logging/index.js +0 -1
- package/dist/system/logging/logging.error.d.ts +0 -1
- package/dist/system/logging/logging.error.js +0 -1
- package/dist/system/observability/index.d.ts +0 -1
- package/dist/system/observability/index.js +0 -1
- package/dist/system/observability/observabilityError.base.d.ts +0 -1
- package/dist/system/observability/observabilityError.base.js +0 -1
- package/dist/system/runtime.error.d.ts +0 -1
- package/dist/system/runtime.error.js +0 -1
- package/dist/system/runtimeError.base.d.ts +0 -1
- package/dist/system/runtimeError.base.js +0 -1
- package/dist/system/runtimeError.types.d.ts +0 -1
- package/dist/system/runtimeError.types.js +0 -1
- package/dist/system/system.error.d.ts +0 -1
- package/dist/system/system.error.js +0 -1
- package/dist/system/systemError.base.d.ts +0 -1
- package/dist/system/systemError.base.js +0 -1
- package/dist/system/systemError.factory.d.ts +0 -1
- package/dist/system/systemError.factory.js +0 -1
- package/dist/utils/errorHandler.core.d.ts +1 -1
- package/dist/utils/errorHandler.core.js +12 -12
- package/dist/utils/errorHandler.factory.d.ts +0 -1
- package/dist/utils/errorHandler.factory.js +0 -1
- package/dist/utils/errorHandler.types.d.ts +11 -4
- package/dist/utils/errorHandler.types.js +0 -1
- package/dist/utils/errorMapper.core.d.ts +0 -1
- package/dist/utils/errorMapper.core.js +0 -1
- package/dist/utils/errorMapper.mappers.d.ts +0 -1
- package/dist/utils/errorMapper.mappers.js +0 -1
- package/dist/utils/errorMapper.registry.d.ts +0 -1
- package/dist/utils/errorMapper.registry.js +0 -1
- package/dist/utils/errorMapper.types.d.ts +0 -1
- package/dist/utils/errorMapper.types.js +0 -1
- package/dist/utils/errorSerializer.core.d.ts +6 -4
- package/dist/utils/errorSerializer.core.js +17 -19
- package/dist/utils/errorSerializer.factory.d.ts +0 -1
- package/dist/utils/errorSerializer.factory.js +0 -1
- package/dist/utils/errorSerializer.public.d.ts +41 -0
- package/dist/utils/errorSerializer.public.js +54 -0
- package/dist/utils/errorSerializer.types.d.ts +19 -3
- package/dist/utils/errorSerializer.types.js +0 -1
- package/dist/utils/errorUtils.extraction.d.ts +0 -1
- package/dist/utils/errorUtils.extraction.js +0 -1
- package/dist/utils/errorUtils.helper.d.ts +0 -1
- package/dist/utils/errorUtils.helper.js +0 -1
- package/dist/utils/errorUtils.transform.d.ts +0 -1
- package/dist/utils/errorUtils.transform.js +0 -1
- package/dist/utils/errorUtils.typeCheck.d.ts +0 -1
- package/dist/utils/errorUtils.typeCheck.js +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ try {
|
|
|
48
48
|
- `ErrorCode`, `ErrorCategory` and `ErrorSeverity` enums with guards (`isErrorCode`, ...)
|
|
49
49
|
- Domain, infrastructure and system error families (access, state, HTTP, database, network, container, adapter, crypto, ...) with factories and type guards
|
|
50
50
|
- Base classes for other packages' error families, so their `instanceof` checks match: `TransactionError` (+ 10 subclasses), `MiddlewareLimitExceededError` / `MiddlewareDepthExceededError` / `MiddlewareRateLimitError` / `MiddlewareAbortedError`, `TraversalLimitError`, `HttpMiddlewareError` / `HttpMiddlewarePipelineError` / `HttpRequestGuardError`, `OpenAPIError`, `AuthError`, `OAuthError` (with `ErrorCode.OAUTH_*`), `CqrsError` (+ `CommandFailedError` / `QueryFailedError`, thrown when a failed command or query result is unwrapped), `EventBusStoppedError` / `EventBusDisposedError` (re-exported by `@zudojs/events`), `ObservabilityError`, `InvalidConstantError` / `ConstantContextError`, and the `zudojs-cli` errors `CLIValidationError` / `CLIGenerationError` / `CLINotInProjectError` / `CLITemplateError`
|
|
51
|
+
- Serialization limit errors take `{ statusCode?, expose? }` as a third argument, so a guard can tell a client that sent too much from a server that built too much. `SerializationPayloadTooLargeError(size, maxSize)` defaults to an exposed 413 (its message names only the two sizes, so `serializePublicError` returns it instead of "An unexpected error occurred."); pass `{ statusCode: 500, expose: false }` for a payload the server built itself, as `serialize` in `@zudojs/serialization` does. `SerializationDepthError(depth, maxDepth)` defaults to an unexposed 500; guards over untrusted input pass `{ statusCode: 400, expose: true }`
|
|
51
52
|
- `withMetadata()` copies any error (including subclasses with custom constructors) with extra metadata
|
|
52
53
|
- Serialization: `toJSON()`/`toLogObject()` for trusted logs (cycle-safe cause chains truncated with `"[MaxDepth]"` after 8 levels across the whole chain; metadata under sensitive keys, sensitive keys in object causes and submitted issue values are redacted, so `JSON.stringify(error)` is safe to log), `serializePublicError` / `ErrorSerializer` / `ErrorHandler.toPublicResult` for untrusted clients (recursive redaction, metadata allow-list)
|
|
53
54
|
- Metadata utilities: `createErrorMetadata`, `mergeErrorMetadata`, `sanitizeErrorMetadata` (drops unsupported values) and `redactErrorMetadata` (removes secrets)
|
|
@@ -16,6 +16,12 @@ export declare const BASE_ERROR_BRAND: unique symbol;
|
|
|
16
16
|
* HTTP responses, monitoring, and serialization.
|
|
17
17
|
*/
|
|
18
18
|
export declare class BaseError extends Error {
|
|
19
|
+
/**
|
|
20
|
+
* Machine-readable code. Typed `ErrorCode | string` on purpose: the enum
|
|
21
|
+
* lists the framework's codes, and applications add their own. A `switch`
|
|
22
|
+
* over `error.code` is therefore never exhaustive; narrow with
|
|
23
|
+
* `isErrorCode(error.code)` first when exhaustiveness matters.
|
|
24
|
+
*/
|
|
19
25
|
readonly code: ErrorCode | string;
|
|
20
26
|
readonly category: ErrorCategory;
|
|
21
27
|
readonly severity: ErrorSeverity;
|
|
@@ -74,4 +80,3 @@ export declare class BaseError extends Error {
|
|
|
74
80
|
* Plain-object causes are redacted.
|
|
75
81
|
*/
|
|
76
82
|
export declare function serializeErrorCause(cause: unknown, depth?: number): SerializedBaseError | unknown;
|
|
77
|
-
//# sourceMappingURL=baseError.core.d.ts.map
|
|
@@ -16,6 +16,12 @@ export const BASE_ERROR_BRAND = Symbol.for("@zudojs/errors.BaseError");
|
|
|
16
16
|
* HTTP responses, monitoring, and serialization.
|
|
17
17
|
*/
|
|
18
18
|
export class BaseError extends Error {
|
|
19
|
+
/**
|
|
20
|
+
* Machine-readable code. Typed `ErrorCode | string` on purpose: the enum
|
|
21
|
+
* lists the framework's codes, and applications add their own. A `switch`
|
|
22
|
+
* over `error.code` is therefore never exhaustive; narrow with
|
|
23
|
+
* `isErrorCode(error.code)` first when exhaustiveness matters.
|
|
24
|
+
*/
|
|
19
25
|
code;
|
|
20
26
|
category;
|
|
21
27
|
severity;
|
|
@@ -169,4 +175,3 @@ function normalizeStatusCode(statusCode) {
|
|
|
169
175
|
export function serializeErrorCause(cause, depth = 1) {
|
|
170
176
|
return serializeCauseAt(cause, depth, true, BASE_ERROR_BRAND);
|
|
171
177
|
}
|
|
172
|
-
//# sourceMappingURL=baseError.core.js.map
|
|
@@ -22,4 +22,3 @@ export declare function redactCauseFields(fields: Record<string, unknown>, patte
|
|
|
22
22
|
* value is returned unchanged. Walking stops at {@link MAX_METADATA_DEPTH}.
|
|
23
23
|
*/
|
|
24
24
|
export declare function redactCauseValue(value: unknown, pattern: RegExp | undefined, seen?: WeakSet<object>, depth?: number): unknown;
|
|
25
|
-
//# sourceMappingURL=errorCause.redact.d.ts.map
|
|
@@ -78,4 +78,3 @@ export interface RedactErrorMetadataOptions {
|
|
|
78
78
|
* `sanitizeErrorMetadata`.
|
|
79
79
|
*/
|
|
80
80
|
export declare function redactErrorMetadata(metadata: Record<string, unknown> | undefined | null, options?: RedactErrorMetadataOptions): Readonly<ErrorMetadata>;
|
|
81
|
-
//# sourceMappingURL=errorMetadata.core.d.ts.map
|
package/dist/base/core/index.js
CHANGED
package/dist/base/index.d.ts
CHANGED
package/dist/base/index.js
CHANGED
|
@@ -6,6 +6,12 @@ import type { ErrorMetadata } from "../core/errorMetadata.type.js";
|
|
|
6
6
|
* Options used to construct a Zudojs application error.
|
|
7
7
|
*/
|
|
8
8
|
export interface BaseErrorOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Machine-readable code. `ErrorCode` lists the codes this package knows,
|
|
11
|
+
* but the set is deliberately open so applications can mint their own
|
|
12
|
+
* (`"PAYMENT_CARD_DECLINED"`); use `isErrorCode()` to narrow a value back
|
|
13
|
+
* to the enum before an exhaustive `switch`.
|
|
14
|
+
*/
|
|
9
15
|
readonly code?: ErrorCode | string;
|
|
10
16
|
readonly category?: ErrorCategory;
|
|
11
17
|
readonly severity?: ErrorSeverity;
|
|
@@ -32,4 +38,3 @@ export interface SerializedBaseError {
|
|
|
32
38
|
readonly stack?: string;
|
|
33
39
|
readonly cause?: SerializedBaseError | unknown;
|
|
34
40
|
}
|
|
35
|
-
//# sourceMappingURL=baseError.type.d.ts.map
|
|
@@ -14,4 +14,3 @@ export declare function isInfrastructureErrorCategory(category: ErrorCategory):
|
|
|
14
14
|
export declare function isSecurityErrorCategory(category: ErrorCategory): boolean;
|
|
15
15
|
/** Returns whether the category is normally safe to expose directly to an API consumer. */
|
|
16
16
|
export declare function isPublicErrorCategory(category: ErrorCategory): boolean;
|
|
17
|
-
//# sourceMappingURL=errorCategory.helpers.d.ts.map
|
package/dist/base/types/index.js
CHANGED
package/dist/base/utils/index.js
CHANGED
|
@@ -30,4 +30,3 @@ export declare function sessionExpiredError(message?: string): AuthenticationErr
|
|
|
30
30
|
export declare function invalidTokenError(message?: string): AuthenticationError;
|
|
31
31
|
/** Creates an authentication error for an expired token. */
|
|
32
32
|
export declare function expiredTokenError(message?: string): AuthenticationError;
|
|
33
|
-
//# sourceMappingURL=authentication.error.d.ts.map
|
|
@@ -24,4 +24,3 @@ export declare function accessDeniedError(message?: string): AuthorizationError;
|
|
|
24
24
|
export declare function permissionDeniedError(permission?: string): AuthorizationError;
|
|
25
25
|
/** Creates an authorization error for a protected resource. */
|
|
26
26
|
export declare function resourceAccessDeniedError(resource?: string): AuthorizationError;
|
|
27
|
-
//# sourceMappingURL=authorization.error.d.ts.map
|
|
@@ -46,4 +46,3 @@ export declare function createRateLimitError(retryAfterSeconds?: number, message
|
|
|
46
46
|
export declare function isRateLimitError(value: unknown): value is RateLimitError;
|
|
47
47
|
/** Creates a rate-limit error that asks the client to retry after the specified number of seconds. */
|
|
48
48
|
export declare function retryAfterError(retryAfterSeconds: number): RateLimitError;
|
|
49
|
-
//# sourceMappingURL=rateLimit.error.d.ts.map
|
|
@@ -5,4 +5,3 @@ export { APIError, createAPIError, isAPIError, APIValidationError, APIAuthentica
|
|
|
5
5
|
export type { APIErrorOptions } from "./apiError.base.js";
|
|
6
6
|
export { APINotFoundError, APIConflictError, APIOperationNotFoundError, APIDuplicateOperationError, APIVersionError, } from "./apiError.routing.js";
|
|
7
7
|
export { APIRateLimitError, APITimeoutError, APIUnavailableError, APIInternalError, APIIdempotencyError, } from "./apiError.lifecycle.js";
|
|
8
|
-
//# sourceMappingURL=api.error.d.ts.map
|
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export { APIError, createAPIError, isAPIError, APIValidationError, APIAuthenticationError, APIAuthorizationError, } from "./apiError.base.js";
|
|
5
5
|
export { APINotFoundError, APIConflictError, APIOperationNotFoundError, APIDuplicateOperationError, APIVersionError, } from "./apiError.routing.js";
|
|
6
6
|
export { APIRateLimitError, APITimeoutError, APIUnavailableError, APIInternalError, APIIdempotencyError, } from "./apiError.lifecycle.js";
|
|
7
|
-
//# sourceMappingURL=api.error.js.map
|
|
@@ -5,4 +5,3 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { APIError, APIValidationError, APIAuthenticationError, APIAuthorizationError, APINotFoundError, APIConflictError, APIRateLimitError, APITimeoutError, APIUnavailableError, APIInternalError, APIVersionError, APIOperationNotFoundError, APIDuplicateOperationError, APIIdempotencyError, createAPIError, isAPIError, } from "./api.error.js";
|
|
7
7
|
export type { APIErrorOptions } from "./api.error.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/domain/api/index.js
CHANGED
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
* API-specific error types.
|
|
5
5
|
*/
|
|
6
6
|
export { APIError, APIValidationError, APIAuthenticationError, APIAuthorizationError, APINotFoundError, APIConflictError, APIRateLimitError, APITimeoutError, APIUnavailableError, APIInternalError, APIVersionError, APIOperationNotFoundError, APIDuplicateOperationError, APIIdempotencyError, createAPIError, isAPIError, } from "./api.error.js";
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -25,4 +25,3 @@ export declare function createApplicationError(message: string, options?: Applic
|
|
|
25
25
|
* Determines whether an unknown value is an ApplicationError.
|
|
26
26
|
*/
|
|
27
27
|
export declare function isApplicationError(value: unknown): value is ApplicationError;
|
|
28
|
-
//# sourceMappingURL=application.error.d.ts.map
|
|
@@ -44,4 +44,3 @@ export declare function isConfigurationError(value: unknown): value is Configura
|
|
|
44
44
|
export declare function missingConfigurationError(configKey: string, component?: string): ConfigurationError;
|
|
45
45
|
/** Creates an error for an invalid configuration key. */
|
|
46
46
|
export declare function invalidConfigurationError(configKey: string, component?: string): ConfigurationError;
|
|
47
|
-
//# sourceMappingURL=configuration.error.d.ts.map
|
|
@@ -35,4 +35,3 @@ export declare function invalidDomainState(message: string, metadata?: DomainErr
|
|
|
35
35
|
* Creates a domain error for an unsupported business operation.
|
|
36
36
|
*/
|
|
37
37
|
export declare function unsupportedDomainOperation(message: string, metadata?: DomainErrorOptions["metadata"]): DomainError;
|
|
38
|
-
//# sourceMappingURL=domain.error.d.ts.map
|
package/dist/domain/app/index.js
CHANGED
|
@@ -4,4 +4,3 @@
|
|
|
4
4
|
export { LifecycleError, createLifecycleError, isLifecycleError, } from "./lifecycleError.base.js";
|
|
5
5
|
export type { LifecycleErrorOptions } from "./lifecycleError.base.js";
|
|
6
6
|
export { LifecycleStateError, LifecycleTimeoutError, LifecycleDependencyError, LifecycleComponentError, LifecycleStartError, LifecycleStopError, LifecycleRollbackError, LifecycleDisposedError, } from "./lifecycleError.types.js";
|
|
7
|
-
//# sourceMappingURL=lifecycle.error.d.ts.map
|
|
@@ -3,4 +3,3 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { LifecycleError, createLifecycleError, isLifecycleError, } from "./lifecycleError.base.js";
|
|
5
5
|
export { LifecycleStateError, LifecycleTimeoutError, LifecycleDependencyError, LifecycleComponentError, LifecycleStartError, LifecycleStopError, LifecycleRollbackError, LifecycleDisposedError, } from "./lifecycleError.types.js";
|
|
6
|
-
//# sourceMappingURL=lifecycle.error.js.map
|
|
@@ -36,4 +36,3 @@ export declare class LifecycleError extends BaseError {
|
|
|
36
36
|
export declare function createLifecycleError(message: string, options?: LifecycleErrorOptions): LifecycleError;
|
|
37
37
|
/** Determines whether an unknown value is a LifecycleError. */
|
|
38
38
|
export declare function isLifecycleError(value: unknown): value is LifecycleError;
|
|
39
|
-
//# sourceMappingURL=lifecycleError.base.d.ts.map
|
|
@@ -37,4 +37,3 @@ export declare class ModuleError extends BaseError {
|
|
|
37
37
|
export declare function createModuleError(message: string, options?: ModuleErrorOptions): ModuleError;
|
|
38
38
|
/** Determines whether an unknown value is a ModuleError. */
|
|
39
39
|
export declare function isModuleError(value: unknown): value is ModuleError;
|
|
40
|
-
//# sourceMappingURL=moduleError.base.d.ts.map
|
|
@@ -48,4 +48,3 @@ export declare function createBodyParserError(message: string, options?: BodyPar
|
|
|
48
48
|
* Determines whether an unknown value is a BodyParserError.
|
|
49
49
|
*/
|
|
50
50
|
export declare function isBodyParserError(value: unknown): value is BodyParserError;
|
|
51
|
-
//# sourceMappingURL=bodyParser.error.d.ts.map
|
|
@@ -17,4 +17,3 @@ export declare class HttpBodyError extends BaseError {
|
|
|
17
17
|
export declare function createHttpBodyError(message: string, options?: HttpBodyErrorOptions): HttpBodyError;
|
|
18
18
|
/** Determines whether an unknown value is an HttpBodyError. */
|
|
19
19
|
export declare function isHttpBodyError(value: unknown): value is HttpBodyError;
|
|
20
|
-
//# sourceMappingURL=httpBodyError.base.d.ts.map
|
|
@@ -33,4 +33,3 @@ export declare function createHttpFormDataError(message: string, options?: HttpF
|
|
|
33
33
|
* Determines whether an unknown value is an HttpFormDataError.
|
|
34
34
|
*/
|
|
35
35
|
export declare function isHttpFormDataError(value: unknown): value is HttpFormDataError;
|
|
36
|
-
//# sourceMappingURL=httpFormData.error.d.ts.map
|
|
@@ -33,4 +33,3 @@ export declare function createMultipartError(message: string, options?: Multipar
|
|
|
33
33
|
* Determines whether an unknown value is a MultipartError.
|
|
34
34
|
*/
|
|
35
35
|
export declare function isMultipartError(value: unknown): value is MultipartError;
|
|
36
|
-
//# sourceMappingURL=multipart.error.d.ts.map
|