summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-10-20 00:02:30 +0800
committerxuri <xuri.me@gmail.com>2022-10-20 00:02:30 +0800
commit2df615fa2831bd578371d4e3606f16461c474ce7 (patch)
tree440e30fc64cad3fde230a03645d4be96580fdff1 /errors.go
parent3ece904b0082f4d63afe0d795b61c860d0790c83 (diff)
This close #1373, fixes the incorrect build-in number format apply the result
- An error will be returned when setting the stream row without ascending row numbers, to avoid potential mistakes as mentioned in #1139 - Updated unit tests
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index fd896a6..6a23a2e 100644
--- a/errors.go
+++ b/errors.go
@@ -87,6 +87,12 @@ func newDecodeXMLError(err error) error {
return fmt.Errorf("xml decode error: %s", err)
}
+// newStreamSetRowError defined the error message on the stream writer
+// receiving the non-ascending row number.
+func newStreamSetRowError(row int) error {
+ return fmt.Errorf("row %d has already been written", row)
+}
+
var (
// ErrStreamSetColWidth defined the error message on set column width in
// stream writing mode.