You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
559 B
24 lines
559 B
6 years ago
|
// Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
|
||
|
// All rights reserved.
|
||
|
//
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
// Package errors provides common error types used throughout leveldb.
|
||
|
package ida
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
// Common errors.
|
||
|
var (
|
||
|
ErrRaptorImpNotFound = New("raptor implementation: not found")
|
||
|
ErrTimeOut = New("timeout: time's up now")
|
||
|
)
|
||
|
|
||
|
// New returns an error that formats as the given text.
|
||
|
func New(text string) error {
|
||
|
return errors.New(text)
|
||
|
}
|