diff options
author | NaturalGao <43291304+NaturalGao@users.noreply.github.com> | 2022-08-19 23:24:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 23:24:13 +0800 |
commit | 76f336809f5419343702de5b3284d46feb9ed266 (patch) | |
tree | 207546e0abb538b3fb6d646b046b4c919e4c5711 /errors.go | |
parent | d1e76fc432ac5c9bde99591ec5e88e46b62d9c3d (diff) |
This closes #849, add new function `DeleteComment` for delete comment (#1317)
- Update unit tests for the delete comment
- Add 3 errors function for error messages
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -70,6 +70,23 @@ func newCellNameToCoordinatesError(cell string, err error) error { return fmt.Errorf("cannot convert cell %q to coordinates: %v", cell, err) } +// newNoExistSheetError defined the error message on receiving the not exist +// sheet name. +func newNoExistSheetError(name string) error { + return fmt.Errorf("sheet %s is not exist", name) +} + +// newNotWorksheetError defined the error message on receiving a sheet which +// not a worksheet. +func newNotWorksheetError(name string) error { + return fmt.Errorf("sheet %s is not a worksheet", name) +} + +// newDecodeXMLError defined the error message on decode XML error. +func newDecodeXMLError(err error) error { + return fmt.Errorf("xml decode error: %s", err) +} + var ( // ErrStreamSetColWidth defined the error message on set column width in // stream writing mode. |