use new error codes throughout the server

fixes #86
This commit is contained in:
Lucas Clemente 2016-05-17 12:48:19 +02:00
parent 287ff59138
commit d0e6b993bb
11 changed files with 46 additions and 24 deletions

View file

@ -8,6 +8,7 @@ import (
"time"
"github.com/lucas-clemente/quic-go/protocol"
"github.com/lucas-clemente/quic-go/qerr"
"github.com/lucas-clemente/quic-go/utils"
)
@ -29,7 +30,7 @@ type ConnectionParametersManager struct {
var errTagNotInConnectionParameterMap = errors.New("ConnectionParametersManager: Tag not found in ConnectionsParameter map")
// ErrMalformedTag is returned when the tag value cannot be read
var ErrMalformedTag = errors.New("ConnectionParametersManager: malformed Tag value")
var ErrMalformedTag = qerr.Error(qerr.InvalidCryptoMessageParameter, "malformed Tag value")
// NewConnectionParamatersManager creates a new connection parameters manager
func NewConnectionParamatersManager() *ConnectionParametersManager {