diff options
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/UsageMap.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/UsageMap.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/UsageMap.java b/src/java/com/healthmarketscience/jackcess/UsageMap.java index 6495f0c..5e6ec1e 100644 --- a/src/java/com/healthmarketscience/jackcess/UsageMap.java +++ b/src/java/com/healthmarketscience/jackcess/UsageMap.java @@ -72,8 +72,11 @@ public class UsageMap /** the current handler implementation for reading/writing the specific usage map type. note, this may change over time. */ private Handler _handler; - - /** + + /** Error message prefix used when map type is unrecognized. */ + static final String MSG_PREFIX_UNRECOGNIZED_MAP = "Unrecognized map type: "; + + /** * @param database database that contains this usage map * @param tableBuffer Buffer that contains this map's declaration * @param pageNum Page number that this usage map is contained in @@ -139,7 +142,7 @@ public class UsageMap } else if (mapType == MAP_TYPE_REFERENCE) { _handler = new ReferenceHandler(); } else { - throw new IOException("Unrecognized map type: " + mapType); + throw new IOException(MSG_PREFIX_UNRECOGNIZED_MAP + mapType); } } |