error.go 870 B

1234567891011121314151617181920212223242526
  1. // Copyright 2015 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package xorm
  5. import (
  6. "errors"
  7. )
  8. var (
  9. // ErrParamsType params error
  10. ErrParamsType = errors.New("Params type error")
  11. // ErrTableNotFound table not found error
  12. ErrTableNotFound = errors.New("Not found table")
  13. // ErrUnSupportedType unsupported error
  14. ErrUnSupportedType = errors.New("Unsupported type error")
  15. // ErrNotExist record is not exist error
  16. ErrNotExist = errors.New("Not exist error")
  17. // ErrCacheFailed cache failed error
  18. ErrCacheFailed = errors.New("Cache failed")
  19. // ErrNeedDeletedCond delete needs less one condition error
  20. ErrNeedDeletedCond = errors.New("Delete need at least one condition")
  21. // ErrNotImplemented not implemented
  22. ErrNotImplemented = errors.New("Not implemented")
  23. )