Search Apps Documentation Source Content File Folder Download Copy

errors.gno

0.79 Kb ยท 18 lines
 1package events
 2
 3import (
 4	"errors"
 5	"strconv"
 6)
 7
 8var (
 9	ErrEmptyName                 = errors.New("event name cannot be empty")
10	ErrNoSuchID                  = errors.New("event with specified ID does not exist")
11	ErrMinWidgetSize             = errors.New("you need to request at least 1 event to render")
12	ErrMaxWidgetSize             = errors.New("maximum number of events in widget is" + strconv.Itoa(MaxWidgetSize))
13	ErrDescriptionTooLong        = errors.New("event description is too long")
14	ErrInvalidStartTime          = errors.New("invalid start time format")
15	ErrInvalidEndTime            = errors.New("invalid end time format")
16	ErrEndBeforeStart            = errors.New("end time cannot be before start time")
17	ErrStartEndTimezonemMismatch = errors.New("start and end timezones are not the same")
18)