From a55f354eb3d0c6c1b9a543ff8ff98227aa6063a6 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 17 Aug 2021 00:01:44 +0800 Subject: This closes #989, closes #990 New API: `SetRowStyle` support for set style for the rows Update documentation for the `GetRows`, `SetCellStyle` and `SetColStyle` --- errors.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'errors.go') diff --git a/errors.go b/errors.go index aee4420..4cfd12e 100644 --- a/errors.go +++ b/errors.go @@ -46,6 +46,11 @@ func newUnzipSizeLimitError(unzipSizeLimit int64) error { return fmt.Errorf("unzip size exceeds the %d bytes limit", unzipSizeLimit) } +// newInvalidStyleID defined the error message on receiving the invalid style ID. +func newInvalidStyleID(styleID int) error { + return fmt.Errorf("invalid style ID %d, negative values are not supported", styleID) +} + var ( // ErrStreamSetColWidth defined the error message on set column width in // stream writing mode. @@ -76,6 +81,8 @@ var ( ErrAddVBAProject = errors.New("unsupported VBA project extension") // ErrToExcelTime defined the error message on receive a not UTC time. ErrToExcelTime = errors.New("only UTC time expected") + // ErrMaxRows defined the error message on receive a row number exceeds maximum limit. + ErrMaxRows = errors.New("row number exceeds maximum limit") // ErrMaxRowHeight defined the error message on receive an invalid row // height. ErrMaxRowHeight = errors.New("the height of the row must be smaller than or equal to 409 points") -- cgit v1.2.1