-
Notifications
You must be signed in to change notification settings - Fork 40
/
errors.go
24 lines (22 loc) · 1.22 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package excel
import "errors"
var (
// ErrConnectNotOpened means can not open connect to excel.
ErrConnectNotOpened = errors.New("connect should opened")
// ErrWorkbookRelsNotExist means can not found the workbook rels of excel.
ErrWorkbookRelsNotExist = errors.New("parse xlsx file failed: xl/_rels/workbook.xml.rels not exist")
// ErrWorkbookNotExist means can not found the workbook of excel.
ErrWorkbookNotExist = errors.New("parse xlsx file failed: xl/workbook.xml not exist")
// ErrSharedStringsNotExist means can not found the shared of excel.
ErrSharedStringsNotExist = errors.New("parse xlsx file failed: xl/sharedStringPaths.xml not exist")
// ErrInvalidConatiner means can not using the container.
ErrInvalidConatiner = errors.New("container should be ptr to slice")
// ErrEmptyRow means the row is empty.
ErrEmptyRow = errors.New("empty row")
// ErrNoRow means there is no row.
ErrNoRow = errors.New("no row")
// ErrScanNil means scan nil.
ErrScanNil = errors.New("scan(nil)")
// ErrDuplicatedTitles means the row of title has duplicated value and can not read into a map or struct since it need unique keys.
ErrDuplicatedTitles = errors.New("title row has duplicated key and can not read into a map or struct")
)