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
new file mode 100644
index 0000000..4dec815
--- /dev/null
+++ b/errors.go
@@ -0,0 +1,17 @@
+package excelize
+
+import (
+ "fmt"
+)
+
+func newInvalidColumnNameError(col string) error {
+ return fmt.Errorf("invalid column name %q", col)
+}
+
+func newInvalidRowNumberError(row int) error {
+ return fmt.Errorf("invalid row number %d", row)
+}
+
+func newInvalidCellNameError(cell string) error {
+ return fmt.Errorf("invalid cell name %q", cell)
+}