github.com/sagernet/quic-go@v0.43.1-beta.1/ech/errors.go (about)

     1  package quic
     2  
     3  import (
     4  	"github.com/sagernet/quic-go"
     5  	"github.com/sagernet/quic-go/internal/qerr"
     6  )
     7  
     8  type (
     9  	TransportError          = qerr.TransportError
    10  	ApplicationError        = qerr.ApplicationError
    11  	VersionNegotiationError = qerr.VersionNegotiationError
    12  	StatelessResetError     = qerr.StatelessResetError
    13  	IdleTimeoutError        = qerr.IdleTimeoutError
    14  	HandshakeTimeoutError   = qerr.HandshakeTimeoutError
    15  )
    16  
    17  type (
    18  	TransportErrorCode   = qerr.TransportErrorCode
    19  	ApplicationErrorCode = qerr.ApplicationErrorCode
    20  	StreamErrorCode      = qerr.StreamErrorCode
    21  )
    22  
    23  const (
    24  	NoError                   = qerr.NoError
    25  	InternalError             = qerr.InternalError
    26  	ConnectionRefused         = qerr.ConnectionRefused
    27  	FlowControlError          = qerr.FlowControlError
    28  	StreamLimitError          = qerr.StreamLimitError
    29  	StreamStateError          = qerr.StreamStateError
    30  	FinalSizeError            = qerr.FinalSizeError
    31  	FrameEncodingError        = qerr.FrameEncodingError
    32  	TransportParameterError   = qerr.TransportParameterError
    33  	ConnectionIDLimitError    = qerr.ConnectionIDLimitError
    34  	ProtocolViolation         = qerr.ProtocolViolation
    35  	InvalidToken              = qerr.InvalidToken
    36  	ApplicationErrorErrorCode = qerr.ApplicationErrorErrorCode
    37  	CryptoBufferExceeded      = qerr.CryptoBufferExceeded
    38  	KeyUpdateError            = qerr.KeyUpdateError
    39  	AEADLimitReached          = qerr.AEADLimitReached
    40  	NoViablePathError         = qerr.NoViablePathError
    41  )
    42  
    43  // A StreamError is used for Stream.CancelRead and Stream.CancelWrite.
    44  // It is also returned from Stream.Read and Stream.Write if the peer canceled reading or writing.
    45  type StreamError = quic.StreamError
    46  
    47  // DatagramTooLargeError is returned from Connection.SendDatagram if the payload is too large to be sent.
    48  type DatagramTooLargeError = quic.DatagramTooLargeError