@@ -60,10 +60,10 @@ var (
6060 // family name overflow.
6161 ErrFontLength = fmt .Errorf ("the length of the font family name must be less than or equal to %d" , MaxFontFamilyLength )
6262 // 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 )
6464 // ErrFormControlValue defined the error message for receiving a scroll
6565 // 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 )
6767 // ErrGroupSheets defined the error message on group sheets.
6868 ErrGroupSheets = errors .New ("group worksheet must contain an active worksheet" )
6969 // ErrImgExt defined the error message on receive an unsupported image
9191 ErrOutlineLevel = errors .New ("invalid outline level" )
9292 // ErrPageSetupAdjustTo defined the error message for receiving a page setup
9393 // 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" )
9595 // ErrParameterInvalid defined the error message on receive the invalid
9696 // parameter.
9797 ErrParameterInvalid = errors .New ("parameter is invalid" )
@@ -132,10 +132,10 @@ var (
132132 ErrSparklineRange = errors .New ("parameter 'Range' is required" )
133133 // ErrSparklineStyle defined the error message on receive the invalid
134134 // 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" )
136136 // ErrSparklineType defined the error message on receive the invalid
137137 // 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'" )
139139 // ErrStreamSetColStyle defined the error message on set column style in
140140 // stream writing mode.
141141 ErrStreamSetColStyle = errors .New ("must call the SetColStyle function before the SetRow function" )
@@ -148,6 +148,9 @@ var (
148148 // ErrTotalSheetHyperlinks defined the error message on hyperlinks count
149149 // overflow.
150150 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" )
151154 // ErrUnknownEncryptMechanism defined the error message on unsupported
152155 // encryption mechanism.
153156 ErrUnknownEncryptMechanism = errors .New ("unknown encryption mechanism" )
0 commit comments