errors.go
package breaker
// Interrupted is the error returned by the breaker
// when a cancellation signal occurred.
const Interrupted Error = "operation interrupted"
// Error defines the package errors.
type Error string
// Error returns the string representation of an error.
func (err Error) Error() string {
return string(err)
}