move all error things to new qerr package, replacing errorcodes

This commit is contained in:
Lucas Clemente
2016-05-17 10:24:34 +02:00
parent 62da35d613
commit bfaa4200df
12 changed files with 71 additions and 66 deletions

15
qerr/quic_error_test.go Normal file
View File

@@ -0,0 +1,15 @@
package qerr_test
import (
"github.com/lucas-clemente/quic-go/qerr"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Quic error", func() {
It("has a string representation", func() {
err := qerr.Error(qerr.InternalError, "foobar")
Expect(err.Error()).To(Equal("InternalError: foobar"))
})
})