mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
11 lines
338 B
Go
11 lines
338 B
Go
package errors
|
|
|
|
func NewEventError(msg string) (err error) {
|
|
return NewError(ErrorPrefixEvent, msg)
|
|
}
|
|
|
|
var ErrorEventNotFound = NewEventError("not found")
|
|
var ErrorEventInvalidType = NewEventError("invalid type")
|
|
var ErrorEventAlreadyExists = NewEventError("already exists")
|
|
var ErrorEventUnknownAction = NewEventError("unknown action")
|