|
38 | 38 | // ErrCoordinates defined the error message on invalid coordinates tuples |
39 | 39 | // length. |
40 | 40 | ErrCoordinates = errors.New("coordinates length must be 4") |
41 | | - // ErrCustomNumFmt defined the error message on receive the empty custom number format. |
| 41 | + // ErrCustomNumFmt defined the error message on receive the empty custom |
| 42 | + // number format. |
42 | 43 | ErrCustomNumFmt = errors.New("custom number format can not be empty") |
43 | 44 | // ErrDataValidationFormulaLength defined the error message for receiving a |
44 | 45 | // data validation formula length that exceeds the limit. |
|
54 | 55 | ErrDefinedNameScope = errors.New("no defined name on the scope") |
55 | 56 | // ErrExistsSheet defined the error message on given sheet already exists. |
56 | 57 | ErrExistsSheet = errors.New("the same name sheet already exists") |
57 | | - // ErrExistsTableName defined the error message on given table already exists. |
| 58 | + // ErrExistsTableName defined the error message on given table already |
| 59 | + // exists. |
58 | 60 | ErrExistsTableName = errors.New("the same name table already exists") |
| 61 | + // ErrFillType defined the error message on receive an invalid fill type. |
| 62 | + ErrFillType = errors.New("fill type value must be one of 'gradient' or 'pattern'") |
| 63 | + // ErrFillGradientColor defined the error message on receive an invalid fill |
| 64 | + // color for 'gradient' type. |
| 65 | + ErrFillGradientColor = errors.New("fill color value must be an array of two colors for 'gradient' type") |
| 66 | + // ErrFillGradientShading defined the error message on receive an invalid |
| 67 | + // fill shading for 'gradient' type. |
| 68 | + ErrFillGradientShading = errors.New("fill shading value must be between 0 and 16 for 'gradient' type") |
| 69 | + // ErrFillPatternColor defined the error message on receive an invalid fill |
| 70 | + // color for 'pattern' type. |
| 71 | + ErrFillPatternColor = errors.New("fill color value must be empty or an array of one color for 'pattern' type") |
| 72 | + // ErrFillPattern defined the error message on receive an invalid fill |
| 73 | + // pattern. |
| 74 | + ErrFillPattern = errors.New("fill pattern value must be between 0 and 18") |
59 | 75 | // ErrFontLength defined the error message on the length of the font |
60 | 76 | // family name overflow. |
61 | 77 | ErrFontLength = fmt.Errorf("the length of the font family name must be less than or equal to %d", MaxFontFamilyLength) |
|
78 | 94 | // ErrMaxRowHeight defined the error message on receive an invalid row |
79 | 95 | // height. |
80 | 96 | ErrMaxRowHeight = fmt.Errorf("the height of the row must be less than or equal to %d points", MaxRowHeight) |
81 | | - // ErrMaxRows defined the error message on receive a row number exceeds maximum limit. |
| 97 | + // ErrMaxRows defined the error message on receive a row number exceeds |
| 98 | + // maximum limit. |
82 | 99 | ErrMaxRows = errors.New("row number exceeds maximum limit") |
83 | 100 | // ErrNameLength defined the error message on receiving the defined name or |
84 | 101 | // table name length exceeds the limit. |
@@ -169,8 +186,8 @@ var ( |
169 | 186 | // ErrUnsupportedHashAlgorithm defined the error message on unsupported |
170 | 187 | // hash algorithm. |
171 | 188 | ErrUnsupportedHashAlgorithm = errors.New("unsupported hash algorithm") |
172 | | - // ErrUnsupportedNumberFormat defined the error message on unsupported number format |
173 | | - // expression. |
| 189 | + // ErrUnsupportedNumberFormat defined the error message on unsupported |
| 190 | + // number format expression. |
174 | 191 | ErrUnsupportedNumberFormat = errors.New("unsupported number format token") |
175 | 192 | // ErrWorkbookFileFormat defined the error message on receive an |
176 | 193 | // unsupported workbook file format. |
|
0 commit comments