remove deprecated error variables
This commit is contained in:
parent
45a1513347
commit
ffa93393bc
12
client.go
12
client.go
@ -191,18 +191,6 @@ func (conf *Config) isValid() error {
|
|||||||
// connected.
|
// connected.
|
||||||
var ErrNotConnected = errors.New("client is not connected to server")
|
var ErrNotConnected = errors.New("client is not connected to server")
|
||||||
|
|
||||||
// ErrDisconnected is called when Config.Retries is less than 1, and we
|
|
||||||
// non-intentionally disconnected from the server.
|
|
||||||
var ErrDisconnected = errors.New("unexpectedly disconnected")
|
|
||||||
|
|
||||||
// ErrInvalidTarget should be returned if the target which you are
|
|
||||||
// attempting to send an event to is invalid or doesn't match RFC spec.
|
|
||||||
type ErrInvalidTarget struct {
|
|
||||||
Target string
|
|
||||||
}
|
|
||||||
|
|
||||||
func (e *ErrInvalidTarget) Error() string { return "invalid target: " + e.Target }
|
|
||||||
|
|
||||||
// New creates a new IRC client with the specified server, name and config.
|
// New creates a new IRC client with the specified server, name and config.
|
||||||
func New(config Config) *Client {
|
func New(config Config) *Client {
|
||||||
c := &Client{
|
c := &Client{
|
||||||
|
Loading…
Reference in New Issue
Block a user