Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferOverflow = NewNetworkError("Attempted to read too much data from packet.")
BufferOverflow Error to return when we accidentally try to read from an empty packet.
View Source
var ConnClosed = NewNetworkError("Connection closed.")
ConnClosed Error to return when the connection closes normally.
View Source
var ConnDeadline = NewNetworkError("Connection deadline could not be set.")
ConnDeadline Error to return when the connection's deadline for reading data can not be properly set.
View Source
var ConnTimedOut = NewNetworkError("Connection timed out.")
ConnTimedOut Error to return when the connection is inactive for 10 seconds.
Functions ¶
func NewDatabaseError ¶
NewDatabaseError Returns a new database-related error.
func NewNetworkError ¶
NewNetworkError Returns a new NetError struct with the specified message.
Types ¶
type DatabaseError ¶
type DatabaseError struct {
// contains filtered or unexported fields
}
DatabaseError A database-related error.
func (DatabaseError) Error ¶
func (e DatabaseError) Error() string
Click to show internal directories.
Click to hide internal directories.