mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01:00
62 lines
3.1 KiB
Go
62 lines
3.1 KiB
Go
// Copyright (c) 2012-2014 Jeremy Latt
|
|
// Copyright (c) 2014-2015 Edmund Huber
|
|
// Copyright (c) 2016-2017 Daniel Oaks <daniel@danieloaks.net>
|
|
// released under the MIT license
|
|
|
|
package irc
|
|
|
|
import "errors"
|
|
|
|
// Runtime Errors
|
|
var (
|
|
errAccountAlreadyRegistered = errors.New("Account already exists")
|
|
errAccountCreation = errors.New("Account could not be created")
|
|
errAccountDoesNotExist = errors.New("Account does not exist")
|
|
errAccountVerificationFailed = errors.New("Account verification failed")
|
|
errAccountUnverified = errors.New("Account is not yet verified")
|
|
errAccountAlreadyVerified = errors.New("Account is already verified")
|
|
errAccountInvalidCredentials = errors.New("Invalid account credentials")
|
|
errCertfpAlreadyExists = errors.New("An account already exists with your certificate")
|
|
errChannelAlreadyRegistered = errors.New("Channel is already registered")
|
|
errChannelNameInUse = errors.New("Channel name in use")
|
|
errInvalidChannelName = errors.New("Invalid channel name")
|
|
errMonitorLimitExceeded = errors.New("Monitor limit exceeded")
|
|
errNickMissing = errors.New("nick missing")
|
|
errNicknameInUse = errors.New("nickname in use")
|
|
errNicknameReserved = errors.New("nickname is reserved")
|
|
errNoExistingBan = errors.New("Ban does not exist")
|
|
errNoSuchChannel = errors.New("No such channel")
|
|
errRenamePrivsNeeded = errors.New("Only chanops can rename channels")
|
|
errSaslFail = errors.New("SASL failed")
|
|
)
|
|
|
|
// Socket Errors
|
|
var (
|
|
errNoPeerCerts = errors.New("Client did not provide a certificate")
|
|
errNotTLS = errors.New("Not a TLS connection")
|
|
)
|
|
|
|
// String Errors
|
|
var (
|
|
errCouldNotStabilize = errors.New("Could not stabilize string while casefolding")
|
|
errStringIsEmpty = errors.New("String is empty")
|
|
errInvalidCharacter = errors.New("Invalid character")
|
|
)
|
|
|
|
// Config Errors
|
|
var (
|
|
ErrDatastorePathMissing = errors.New("Datastore path missing")
|
|
ErrInvalidCertKeyPair = errors.New("tls cert+key: invalid pair")
|
|
ErrLimitsAreInsane = errors.New("Limits aren't setup properly, check them and make them sane")
|
|
ErrLineLengthsTooSmall = errors.New("Line lengths must be 512 or greater (check the linelen section under server->limits)")
|
|
ErrLoggerExcludeEmpty = errors.New("Encountered logging type '-' with no type to exclude")
|
|
ErrLoggerFilenameMissing = errors.New("Logging configuration specifies 'file' method but 'filename' is empty")
|
|
ErrLoggerHasNoTypes = errors.New("Logger has no types to log")
|
|
ErrNetworkNameMissing = errors.New("Network name missing")
|
|
ErrNoFingerprintOrPassword = errors.New("Fingerprint or password needs to be specified")
|
|
ErrNoListenersDefined = errors.New("Server listening addresses missing")
|
|
ErrOperClassDependencies = errors.New("OperClasses contains a looping dependency, or a class extends from a class that doesn't exist")
|
|
ErrServerNameMissing = errors.New("Server name missing")
|
|
ErrServerNameNotHostname = errors.New("Server name must match the format of a hostname")
|
|
)
|