13 lines
415 B
Go
13 lines
415 B
Go
|
// Copyright 2019 Drone.IO Inc. All rights reserved.
|
||
|
// Use of this source code is governed by the Drone Non-Commercial License
|
||
|
// that can be found in the LICENSE file.
|
||
|
|
||
|
package db
|
||
|
|
||
|
import "errors"
|
||
|
|
||
|
// ErrOptimisticLock is returned by if the struct being
|
||
|
// modified has a Version field and the value is not equal
|
||
|
// to the current value in the database
|
||
|
var ErrOptimisticLock = errors.New("Optimistic Lock Error")
|