@@ -60,10 +60,10 @@ var (
60
60
// family name overflow.
61
61
ErrFontLength = fmt .Errorf ("the length of the font family name must be less than or equal to %d" , MaxFontFamilyLength )
62
62
// ErrFontSize defined the error message on the size of the font is invalid.
63
- ErrFontSize = fmt .Errorf ("font size must be between %d and %d points" , MinFontSize , MaxFontSize )
63
+ ErrFontSize = fmt .Errorf ("font size must be an integer from %d to %d points" , MinFontSize , MaxFontSize )
64
64
// ErrFormControlValue defined the error message for receiving a scroll
65
65
// value exceeds limit.
66
- ErrFormControlValue = fmt .Errorf ("scroll value must be between 0 and %d" , MaxFormControlValue )
66
+ ErrFormControlValue = fmt .Errorf ("scroll value must be an integer from 0 to %d" , MaxFormControlValue )
67
67
// ErrGroupSheets defined the error message on group sheets.
68
68
ErrGroupSheets = errors .New ("group worksheet must contain an active worksheet" )
69
69
// ErrImgExt defined the error message on receive an unsupported image
91
91
ErrOutlineLevel = errors .New ("invalid outline level" )
92
92
// ErrPageSetupAdjustTo defined the error message for receiving a page setup
93
93
// adjust to value exceeds limit.
94
- ErrPageSetupAdjustTo = errors .New ("adjust to value must be between 10 and 400" )
94
+ ErrPageSetupAdjustTo = errors .New ("adjust to value must be an integer from 0 to 400" )
95
95
// ErrParameterInvalid defined the error message on receive the invalid
96
96
// parameter.
97
97
ErrParameterInvalid = errors .New ("parameter is invalid" )
@@ -132,10 +132,10 @@ var (
132
132
ErrSparklineRange = errors .New ("parameter 'Range' is required" )
133
133
// ErrSparklineStyle defined the error message on receive the invalid
134
134
// sparkline Style parameters.
135
- ErrSparklineStyle = errors .New ("parameter 'Style' must between 0- 35" )
135
+ ErrSparklineStyle = errors .New ("parameter 'Style' value must be an integer from 0 to 35" )
136
136
// ErrSparklineType defined the error message on receive the invalid
137
137
// sparkline Type parameters.
138
- ErrSparklineType = errors .New ("parameter 'Type' must be 'line', 'column' or 'win_loss'" )
138
+ ErrSparklineType = errors .New ("parameter 'Type' value must be one of 'line', 'column' or 'win_loss'" )
139
139
// ErrStreamSetColStyle defined the error message on set column style in
140
140
// stream writing mode.
141
141
ErrStreamSetColStyle = errors .New ("must call the SetColStyle function before the SetRow function" )
@@ -148,6 +148,9 @@ var (
148
148
// ErrTotalSheetHyperlinks defined the error message on hyperlinks count
149
149
// overflow.
150
150
ErrTotalSheetHyperlinks = errors .New ("over maximum limit hyperlinks in a worksheet" )
151
+ // ErrTransparency defined the error message for receiving a transparency
152
+ // value exceeds limit.
153
+ ErrTransparency = errors .New ("transparency value must be an integer from 0 to 100" )
151
154
// ErrUnknownEncryptMechanism defined the error message on unsupported
152
155
// encryption mechanism.
153
156
ErrUnknownEncryptMechanism = errors .New ("unknown encryption mechanism" )
0 commit comments