nanomsg.org/go/mangos/v2@v2.0.9-0.20200203084354-8a092611e461/errors.go (about)

     1  // Copyright 2018 The Mangos Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use file except in compliance with the License.
     5  // You may obtain a copy of the license at
     6  //
     7  //    http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package mangos
    16  
    17  import (
    18  	"nanomsg.org/go/mangos/v2/errors"
    19  )
    20  
    21  // Various error codes.
    22  const (
    23  	ErrBadAddr     = errors.ErrBadAddr
    24  	ErrBadHeader   = errors.ErrBadHeader
    25  	ErrBadVersion  = errors.ErrBadVersion
    26  	ErrTooShort    = errors.ErrTooShort
    27  	ErrTooLong     = errors.ErrTooLong
    28  	ErrClosed      = errors.ErrClosed
    29  	ErrConnRefused = errors.ErrConnRefused
    30  	ErrSendTimeout = errors.ErrSendTimeout
    31  	ErrRecvTimeout = errors.ErrRecvTimeout
    32  	ErrProtoState  = errors.ErrProtoState
    33  	ErrProtoOp     = errors.ErrProtoOp
    34  	ErrBadTran     = errors.ErrBadTran
    35  	ErrBadProto    = errors.ErrBadProto
    36  	ErrBadOption   = errors.ErrBadOption
    37  	ErrBadValue    = errors.ErrBadValue
    38  	ErrGarbled     = errors.ErrGarbled
    39  	ErrAddrInUse   = errors.ErrAddrInUse
    40  	ErrBadProperty = errors.ErrBadProperty
    41  	ErrTLSNoConfig = errors.ErrTLSNoConfig
    42  	ErrTLSNoCert   = errors.ErrTLSNoCert
    43  	ErrNotRaw      = errors.ErrNotRaw
    44  	ErrCanceled    = errors.ErrCanceled
    45  	ErrNoContext   = errors.ErrNoContext
    46  )