summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index f5ea06e..fbcef04 100644
--- a/errors.go
+++ b/errors.go
@@ -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.