mirror of https://github.com/tidwall/tile38.git
52 lines
2.2 KiB
Go
52 lines
2.2 KiB
Go
// Copyright 2012-2018 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.
|
|
|
|
package server
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrConnectionClosed represents an error condition on a closed connection.
|
|
ErrConnectionClosed = errors.New("Connection Closed")
|
|
|
|
// ErrAuthorization represents an error condition on failed authorization.
|
|
ErrAuthorization = errors.New("Authorization Error")
|
|
|
|
// ErrAuthTimeout represents an error condition on failed authorization due to timeout.
|
|
ErrAuthTimeout = errors.New("Authorization Timeout")
|
|
|
|
// ErrMaxPayload represents an error condition when the payload is too big.
|
|
ErrMaxPayload = errors.New("Maximum Payload Exceeded")
|
|
|
|
// ErrMaxControlLine represents an error condition when the control line is too big.
|
|
ErrMaxControlLine = errors.New("Maximum Control Line Exceeded")
|
|
|
|
// ErrReservedPublishSubject represents an error condition when sending to a reserved subject, e.g. _SYS.>
|
|
ErrReservedPublishSubject = errors.New("Reserved Internal Subject")
|
|
|
|
// ErrBadClientProtocol signals a client requested an invalud client protocol.
|
|
ErrBadClientProtocol = errors.New("Invalid Client Protocol")
|
|
|
|
// ErrTooManyConnections signals a client that the maximum number of connections supported by the
|
|
// server has been reached.
|
|
ErrTooManyConnections = errors.New("Maximum Connections Exceeded")
|
|
|
|
// ErrTooManySubs signals a client that the maximum number of subscriptions per connection
|
|
// has been reached.
|
|
ErrTooManySubs = errors.New("Maximum Subscriptions Exceeded")
|
|
|
|
// ErrClientConnectedToRoutePort represents an error condition when a client
|
|
// attempted to connect to the route listen port.
|
|
ErrClientConnectedToRoutePort = errors.New("Attempted To Connect To Route Port")
|
|
)
|