diff --git a/error.go b/error.go index 00747ed1133af80c61f39f5a7d43c421019930d4..965f6066779c73b3669260f2acdf910c13a5e7cb 100644 --- a/error.go +++ b/error.go @@ -27,26 +27,26 @@ import ( // Shared error messages. var ( - ErrNoMoreRows = errors.New(`No more rows in this result set.`) - ErrNotConnected = errors.New(`You're currently not connected.`) - ErrMissingDatabaseName = errors.New(`Missing database name.`) - ErrMissingCollectionName = errors.New(`Missing collection name.`) - ErrCollectionDoesNotExist = errors.New(`Collection does not exist.`) - ErrSockerOrHost = errors.New(`You may connect either to a unix socket or a tcp address, but not both.`) - ErrQueryLimitParam = errors.New(`A query can accept only one db.Limit() parameter.`) - ErrQuerySortParam = errors.New(`A query can accept only one db.Sort{} parameter.`) - ErrQueryOffsetParam = errors.New(`A query can accept only one db.Offset() parameter.`) - ErrMissingConditions = errors.New(`Missing selector conditions.`) - ErrUnsupported = errors.New(`This action is currently unsupported on this database.`) - ErrUndefined = errors.New(`This value is undefined.`) - ErrQueryIsPending = errors.New(`Can't execute this instruction while the result set is still open.`) - ErrUnsupportedDestination = errors.New(`Unsupported destination type.`) - ErrUnsupportedType = errors.New(`This type does not support marshaling.`) - ErrUnsupportedValue = errors.New(`This value does not support unmarshaling.`) - ErrUnknownConditionType = errors.New(`Arguments of type %T can't be used as constraints.`) - ErrTooManyClients = errors.New(`Can't connect to database server: too many clients.`) - ErrGivingUpTryingToConnect = errors.New(`Giving up trying to connect: too many clients.`) - ErrMissingConnURL = errors.New(`Missing DSN`) - ErrNotImplemented = errors.New(`Call not implemented`) - ErrAlreadyWithinTransaction = errors.New(`Already within a transaction`) + ErrNoMoreRows = errors.New(`upper: no more rows in this result set.`) + ErrNotConnected = errors.New(`upper: you're currently not connected.`) + ErrMissingDatabaseName = errors.New(`upper: missing database name.`) + ErrMissingCollectionName = errors.New(`upper: missing collection name.`) + ErrCollectionDoesNotExist = errors.New(`upper: collection does not exist.`) + ErrSockerOrHost = errors.New(`upper: you may connect either to a unix socket or a tcp address, but not both.`) + ErrQueryLimitParam = errors.New(`upper: a query can accept only one db.Limit() parameter.`) + ErrQuerySortParam = errors.New(`upper: a query can accept only one db.Sort{} parameter.`) + ErrQueryOffsetParam = errors.New(`upper: a query can accept only one db.Offset() parameter.`) + ErrMissingConditions = errors.New(`upper: missing selector conditions.`) + ErrUnsupported = errors.New(`upper: this action is currently unsupported on this database.`) + ErrUndefined = errors.New(`upper: this value is undefined.`) + ErrQueryIsPending = errors.New(`upper: can't execute this instruction while the result set is still open.`) + ErrUnsupportedDestination = errors.New(`upper: unsupported destination type.`) + ErrUnsupportedType = errors.New(`upper: this type does not support marshaling.`) + ErrUnsupportedValue = errors.New(`upper: this value does not support unmarshaling.`) + ErrUnknownConditionType = errors.New(`upper: arguments of type %T can't be used as constraints.`) + ErrTooManyClients = errors.New(`upper: can't connect to database server: too many clients.`) + ErrGivingUpTryingToConnect = errors.New(`upper: giving up trying to connect: too many clients.`) + ErrMissingConnURL = errors.New(`upper: missing DSN`) + ErrNotImplemented = errors.New(`upper: call not implemented`) + ErrAlreadyWithinTransaction = errors.New(`upper: already within a transaction`) )