summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
committerxuri <xuri.me@gmail.com>2021-11-16 00:40:44 +0800
commitbda8e7f8129dae0064c47f8e051f76492e1128f5 (patch)
treef920fccbda3059acdf0c0cb66ebb875161a32576 /errors.go
parent72410361b07e7539037252467a38a73b32986dce (diff)
This closes #1061, support multi-byte language on set header footer
typo fixed and simplify code for read the data values arguments of formula functions
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 56a2280..f9eedde 100644
--- a/errors.go
+++ b/errors.go
@@ -51,6 +51,11 @@ func newInvalidStyleID(styleID int) error {
return fmt.Errorf("invalid style ID %d, negative values are not supported", styleID)
}
+// newFieldLengthError defined the error message on receiving the field length overflow.
+func newFieldLengthError(name string) error {
+ return fmt.Errorf("field %s must be less or equal than 255 characters", name)
+}
+
var (
// ErrStreamSetColWidth defined the error message on set column width in
// stream writing mode.