summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
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.