github.com/searKing/golang/go@v1.2.117/net/mux/error.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package mux
     6  
     7  import (
     8  	"errors"
     9  	"net"
    10  
    11  	net_ "github.com/searKing/golang/go/net"
    12  )
    13  
    14  // type check
    15  var _ net.Error = ErrListenerClosed
    16  
    17  // ErrListenerClosed is returned from MuxListener.Accept when the underlying
    18  // listener is closed.
    19  var ErrListenerClosed = net_.ErrListenerClosed
    20  
    21  // ErrServerClosed is returned by the Server's Serve, ServeTLS, ListenAndServe,
    22  // and ListenAndServeTLS methods after a call to Shutdown or Close.
    23  var ErrServerClosed = errors.New("net/mux: Server closed")
    24  
    25  // ErrAbortHandler is a sentinel panic value to abort a handler.
    26  // While any panic from ServeHTTP aborts the response to the client,
    27  // panicking with ErrAbortHandler also suppresses logging of a stack
    28  // trace to the server's error log.
    29  var ErrAbortHandler = errors.New("net/mux: abort HandlerConn")