summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/constants.rb
diff options
context:
space:
mode:
authorWeston Ganger <[email protected]>2022-01-24 13:51:27 -0800
committerWeston Ganger <[email protected]>2022-01-24 13:51:27 -0800
commit34a287b33364657bc340e98be846b65fa8a77922 (patch)
tree1a96879cb2481ea3576b3d487aabe51d5a80edca /lib/axlsx/util/constants.rb
parent6bc6e6303ac27ac11571760c036c244b1448aeaa (diff)
downloadcaxlsx-34a287b33364657bc340e98be846b65fa8a77922.tar.gz
caxlsx-34a287b33364657bc340e98be846b65fa8a77922.zip
Refractor to use constant based error messages
Diffstat (limited to 'lib/axlsx/util/constants.rb')
-rw-r--r--lib/axlsx/util/constants.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/axlsx/util/constants.rb b/lib/axlsx/util/constants.rb
index 25781983..3d67088c 100644
--- a/lib/axlsx/util/constants.rb
+++ b/lib/axlsx/util/constants.rb
@@ -307,6 +307,12 @@ module Axlsx
# error message for non 'integerish' value
ERR_INTEGERISH = "You value must be, or be castable via to_i, an Integer. You provided %s".freeze
+ # error message for invalid cell reference
+ ERR_CELL_REFERENCE_INVALID = "Invalid cell definition `%s`".freeze
+
+ # error message for cell reference with last cell missing
+ ERR_CELL_REFERENCE_MISSING_CELL = "Missing cell `%s` for the specified range `%s`".freeze
+
# Regex to match forbidden control characters
# The following will be automatically stripped from worksheets.
#