Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -47,17 +47,6 @@ func (in ErrInvalidName) Error() string {
|
| 47 | 47 |
// BadRequest denotes the type of this error |
| 48 | 48 |
func (in ErrInvalidName) BadRequest() {}
|
| 49 | 49 |
|
| 50 |
-// NetworkTypeError type is returned when the network type string is not |
|
| 51 |
-// known to libnetwork. |
|
| 52 |
-type NetworkTypeError string |
|
| 53 |
- |
|
| 54 |
-func (nt NetworkTypeError) Error() string {
|
|
| 55 |
- return fmt.Sprintf("unknown driver %q", string(nt))
|
|
| 56 |
-} |
|
| 57 |
- |
|
| 58 |
-// NotFound denotes the type of this error |
|
| 59 |
-func (nt NetworkTypeError) NotFound() {}
|
|
| 60 |
- |
|
| 61 | 50 |
// NetworkNameError is returned when a network with the same name already exists. |
| 62 | 51 |
type NetworkNameError string |
| 63 | 52 |
|
| ... | ... |
@@ -25,7 +25,7 @@ func TestErrorInterfaces(t *testing.T) {
|
| 25 | 25 |
} |
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 |
- notFoundErrorList := []error{NetworkTypeError(""), &UnknownNetworkError{}, &UnknownEndpointError{}, ErrNoSuchNetwork(""), ErrNoSuchEndpoint("")}
|
|
| 28 |
+ notFoundErrorList := []error{&UnknownNetworkError{}, &UnknownEndpointError{}, ErrNoSuchNetwork(""), ErrNoSuchEndpoint("")}
|
|
| 29 | 29 |
for _, err := range notFoundErrorList {
|
| 30 | 30 |
switch u := err.(type) {
|
| 31 | 31 |
case types.NotFoundError: |