# Copyright 2016-2021 The NATS Authors# Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.#from__future__importannotationsimportnats.errors
[docs]classNatsError(nats.errors.Error):""" .. deprecated:: v2.0.0 Please use `nats.errors.Error` instead. """pass
[docs]classErrConnectionClosed(nats.errors.ConnectionClosedError):""" .. deprecated:: v2.0.0 Please use `nats.errors.ConnectionClosedError` instead. """pass
[docs]classErrDrainTimeout(nats.errors.DrainTimeoutError):""" .. deprecated:: v2.0.0 Please use `nats.errors.DrainTimeoutError` instead. """pass
[docs]classErrInvalidUserCredentials(nats.errors.InvalidUserCredentialsError):""" .. deprecated:: v2.0.0 Please use `nats.errors.InvalidUserCredentialsError` instead. """pass
[docs]classErrInvalidCallbackType(nats.errors.InvalidCallbackTypeError):""" .. deprecated:: v2.0.0 Please use `nats.errors.InvalidCallbackTypeError` instead. """pass
[docs]classErrConnectionReconnecting(nats.errors.ConnectionReconnectingError):""" .. deprecated:: v2.0.0 Please use `nats.errors.ConnectionReconnectingError` instead. """pass
[docs]classErrConnectionDraining(nats.errors.ConnectionDrainingError):""" .. deprecated:: v2.0.0 Please use `nats.errors.ConnectionDrainingError` instead. """pass
[docs]classErrMaxPayload(nats.errors.MaxPayloadError):""" .. deprecated:: v2.0.0 Please use `nats.errors.MaxPayloadError` instead. """pass
[docs]classErrStaleConnection(nats.errors.StaleConnectionError):""" .. deprecated:: v2.0.0 Please use `nats.errors.StaleConnectionError` instead. """pass
[docs]classErrJsonParse(nats.errors.JsonParseError):""" .. deprecated:: v2.0.0 Please use `nats.errors.JsonParseError` instead. """pass
[docs]classErrSecureConnRequired(nats.errors.SecureConnRequiredError):""" .. deprecated:: v2.0.0 Please use `nats.errors.SecureConnRequiredError` instead. """pass
[docs]classErrSecureConnWanted(nats.errors.SecureConnWantedError):""" .. deprecated:: v2.0.0 Please use `nats.errors.SecureConnWantedError` instead. """pass
[docs]classErrSecureConnFailed(nats.errors.SecureConnFailedError):""" .. deprecated:: v2.0.0 Please use `nats.errors.SecureConnFailedError` instead. """pass
[docs]classErrBadSubscription(nats.errors.BadSubscriptionError):""" .. deprecated:: v2.0.0 Please use `nats.errors.BadSubscriptionError` instead. """pass
[docs]classErrBadSubject(nats.errors.BadSubjectError):""" .. deprecated:: v2.0.0 Please use `nats.errors.BadSubjectError` instead. """pass
[docs]classErrSlowConsumer(nats.errors.SlowConsumerError):""" .. deprecated:: v2.0.0 Please use `nats.errors.SlowConsumerError` instead. """pass
[docs]classErrTimeout(nats.errors.TimeoutError):""" .. deprecated:: v2.0.0 Please use `nats.errors.TimeoutError` instead. """pass
[docs]classErrBadTimeout(nats.errors.BadTimeoutError):""" .. deprecated:: v2.0.0 Please use `nats.errors.BadTimeoutError` instead. """pass
[docs]classErrAuthorization(nats.errors.AuthorizationError):""" .. deprecated:: v2.0.0 Please use `nats.errors.AuthorizationError` instead. """pass
[docs]classErrNoServers(nats.errors.NoServersError):""" .. deprecated:: v2.0.0 Please use `nats.errors.NoServersError` instead. """pass