kamilsk/breaker

View on GitHub
errors.go

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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)
}