diff options
author | xuri <xuri.me@gmail.com> | 2021-08-17 00:01:44 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-08-17 00:01:44 +0800 |
commit | a55f354eb3d0c6c1b9a543ff8ff98227aa6063a6 (patch) | |
tree | b8832692047821630388ce55b9323d5b2a17bb55 /errors.go | |
parent | b02f864eab5edb2155601b9dd640f99fbd442cb3 (diff) |
This closes #989, closes #990
New API: `SetRowStyle` support for set style for the rows
Update documentation for the `GetRows`, `SetCellStyle` and `SetColStyle`
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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") |