forked from TrueCloudLab/frostfs-api-go
[#147] Add constant error type
closes #147 Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
7b3736567c
commit
28260eb2ff
1 changed files with 9 additions and 0 deletions
9
internal/error.go
Normal file
9
internal/error.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package internal
|
||||||
|
|
||||||
|
// Error is constant type error.
|
||||||
|
type Error string
|
||||||
|
|
||||||
|
// Error implementation of error interface.
|
||||||
|
func (e Error) Error() string {
|
||||||
|
return string(e)
|
||||||
|
}
|
Loading…
Reference in a new issue