/** * A class that represents a DWN Server error. */ export declare class DwnServerError extends Error { code: string; constructor(code: string, message: string); /** * Called by `JSON.stringify(...)` automatically. */ toJSON(): { code: string; message: string; }; } /** * DWN Server error codes. */ export declare enum DwnServerErrorCode { ConnectionClosed = "ConnectionClosed", ConnectionSubscriptionClosed = "ConnectionSubscriptionClosed", ConnectionSubscriptionJsonRpcIdExists = "ConnectionSubscriptionJsonRpcIdExists", ConnectionSubscriptionJsonRpcIdNotFound = "ConnectionSubscriptionJsonRpcIdNotFound", ProofOfWorkInsufficientSolutionNonce = "ProofOfWorkInsufficientSolutionNonce", ProofOfWorkInvalidOrExpiredChallenge = "ProofOfWorkInvalidOrExpiredChallenge", ProofOfWorkManagerInvalidChallengeNonce = "ProofOfWorkManagerInvalidChallengeNonce", ProofOfWorkManagerInvalidResponseNonceFormat = "ProofOfWorkManagerInvalidResponseNonceFormat", ProofOfWorkManagerResponseNonceReused = "ProofOfWorkManagerResponseNonceReused", ProviderAuthNotEnabled = "ProviderAuthNotEnabled", ProviderAuthPluginLoadFailed = "ProviderAuthPluginLoadFailed", ProviderAuthPluginNotConfigured = "ProviderAuthPluginNotConfigured", ProviderAuthTokenInvalid = "ProviderAuthTokenInvalid", RateLimitExceeded = "RateLimitExceeded", RegistrationManagerInvalidOrOutdatedTermsOfServiceHash = "RegistrationManagerInvalidOrOutdatedTermsOfServiceHash", RegistrationRequestMissingCredentials = "RegistrationRequestMissingCredentials", TenantMessageQuotaExceeded = "TenantMessageQuotaExceeded", TenantRegistrationOutdatedTermsOfService = "TenantRegistrationOutdatedTermsOfService", TenantStorageQuotaExceeded = "TenantStorageQuotaExceeded", TenantSuspended = "TenantSuspended" } //# sourceMappingURL=dwn-error.d.ts.map