diff options
author | xuri <xuri.me@gmail.com> | 2022-05-20 20:46:29 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-05-20 20:46:29 +0800 |
commit | 63adac25897f295ef4493e060d917650f03ebd3b (patch) | |
tree | 5153f2be474304832fe4420905a922013bb2088f /errors.go | |
parent | 8f16a76781fb8f47094492c38a02c2cdc4ce5013 (diff) |
make workbook open filed exception message clear
- New exported constant `ErrWorkbookPassword`
- Rename exported constant `ErrWorkbookExt` to `ErrWorkbookFileFormat`
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -106,9 +106,9 @@ var ( // ErrImgExt defined the error message on receive an unsupported image // extension. ErrImgExt = errors.New("unsupported image extension") - // ErrWorkbookExt defined the error message on receive an unsupported - // workbook extension. - ErrWorkbookExt = errors.New("unsupported workbook extension") + // ErrWorkbookFileFormat defined the error message on receive an + // unsupported workbook file format. + ErrWorkbookFileFormat = errors.New("unsupported workbook file format") // ErrMaxFilePathLength defined the error message on receive the file path // length overflow. ErrMaxFilePathLength = errors.New("file path length exceeds maximum limit") @@ -191,4 +191,7 @@ var ( // ErrSparklineStyle defined the error message on receive the invalid // sparkline Style parameters. ErrSparklineStyle = errors.New("parameter 'Style' must between 0-35") + // ErrWorkbookPassword defined the error message on receiving the incorrect + // workbook password. + ErrWorkbookPassword = errors.New("the supplied open workbook password is not correct") ) |