github.com/argoproj/argo-events@v1.9.1/eventbus/common/error.go (about) 1 package common 2 3 // EventBusError is a particular EventBus related error. 4 type EventBusError struct { 5 err error 6 } 7 8 func (e *EventBusError) Error() string { 9 return e.err.Error() 10 } 11 12 // NewEventBusError returns an EventBusError. 13 func NewEventBusError(err error) error { 14 return &EventBusError{err: err} 15 }