Exception: CF::Exceptions::PreferenceDoesNotExist

Inherits:
StandardError
  • Object
show all
Defined in:
lib/corefoundation/exceptions.rb

Overview

Raised when the preference value couldn’t be found for a domain.

Instance Method Summary collapse

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