Exception: CF::Exceptions::PreferenceDoesNotExist
- Inherits:
-
StandardError
- Object
- StandardError
- CF::Exceptions::PreferenceDoesNotExist
- Defined in:
- lib/corefoundation/exceptions.rb
Overview
Raised when the preference value couldn't be found for a domain.
Instance Method Summary collapse
-
#initialize(key, domain, hostname = nil) ⇒ PreferenceDoesNotExist
constructor
A new instance of PreferenceDoesNotExist.
Constructor Details
#initialize(key, domain, hostname = nil) ⇒ PreferenceDoesNotExist
Returns a new instance of PreferenceDoesNotExist.
5 6 7 |
# File 'lib/corefoundation/exceptions.rb', line 5 def initialize(key, domain, hostname = nil) super("Returned NULL value for \"#{key}\" in \"#{domain}\"#{", hostname: #{hostname}" if hostname}") end |