mirror of https://github.com/pocke/goevent.git
22 lines
375 B
Go
22 lines
375 B
Go
package goevent
|
|
|
|
import "fmt"
|
|
|
|
type EventNotDefined struct {
|
|
eventName string
|
|
}
|
|
|
|
func newEventNotDefined(name string) *EventNotDefined {
|
|
return &EventNotDefined{
|
|
eventName: name,
|
|
}
|
|
}
|
|
|
|
func (e *EventNotDefined) Error() string {
|
|
return fmt.Sprintf("%s event has not been defined yet.", e.eventName)
|
|
}
|
|
|
|
func (e *EventNotDefined) EventName() string {
|
|
return e.eventName
|
|
}
|