frostfs-api-go/internal/error.go
Evgeniy Kulikov 28260eb2ff [#147] Add constant error type
closes #147

Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
2020-10-15 11:05:37 +03:00

9 lines
166 B
Go

package internal
// Error is constant type error.
type Error string
// Error implementation of error interface.
func (e Error) Error() string {
return string(e)
}