xorm/error.go

27 lines
872 B
Go
Raw Normal View History

2015-04-28 08:25:04 +00:00
// Copyright 2015 The Xorm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package xorm
import (
2013-12-18 03:31:32 +00:00
"errors"
)
var (
// ErrPtrSliceType represents a type error
ErrPtrSliceType = errors.New("A point to a slice is needed")
2016-12-11 04:45:37 +00:00
// ErrParamsType params error
ErrParamsType = errors.New("Params type error")
// ErrTableNotFound table not found error
ErrTableNotFound = errors.New("Table not found")
2016-12-11 04:45:37 +00:00
// ErrUnSupportedType unsupported error
ErrUnSupportedType = errors.New("Unsupported type error")
// ErrNotExist record does not exist error
ErrNotExist = errors.New("Record does not exist")
2016-12-11 04:45:37 +00:00
// ErrCacheFailed cache failed error
ErrCacheFailed = errors.New("Cache failed")
// ErrConditionType condition type unsupported
ErrConditionType = errors.New("Unsupported condition type")
)