It's probably better to use const_defined? here first to check whether the constant exists than to reraise an exception when it fails.