-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhey_error.go
More file actions
38 lines (26 loc) · 1.01 KB
/
hey_error.go
File metadata and controls
38 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Common error
package hey
type Err string
func (s Err) Error() string {
return string(s)
}
const (
// errNilPtr Error nil pointer.
errNilPtr = Err("hey: nil pointer")
// ErrEmptySqlStatement Error empty sql statement.
ErrEmptySqlStatement = Err("hey: empty sql statement")
// ErrNoRowsAffected Error no rows affected.
ErrNoRowsAffected = Err("hey: no rows affected")
// ErrNoWhereCondition Error no where condition.
ErrNoWhereCondition = Err("hey: no where condition")
// ErrTransactionIsNil Error transaction is nil.
ErrTransactionIsNil = Err("hey: transaction is nil")
// ErrDatabaseIsNil Error database is nil.
ErrDatabaseIsNil = Err("hey: database is nil")
// ErrMethodNotImplemented Error method not implemented.
ErrMethodNotImplemented = Err("hey: method not implemented")
// ErrInvalidMaker Error invalid maker.
ErrInvalidMaker = Err("hey: invalid maker")
// ErrUnexpectedParameterValue Error unexpected parameter value.
ErrUnexpectedParameterValue = Err("hey: unexpected parameter value")
)