Sha256: 36e6df513a789681b6d7b97d5a97f684a3fe8feea66a49a3329c5fc185b5e8b5

Contents?: true

Size: 629 Bytes

Versions: 3

Compression:

Stored size: 629 Bytes

Contents

module CF
  module Exceptions
    # Raised when the preference value couldn't be found for a domain.
    class PreferenceDoesNotExist < StandardError
      def initialize(key, domain, hostname = nil)
        super("Returned NULL value for \"#{key}\" in \"#{domain}\"#{", hostname: #{hostname}" if hostname}")
      end
    end
    # Raised when the preference value failed to write.
    class PreferenceSyncFailed < StandardError
      def initialize(key, domain, hostname = nil)
        super("Couldn't write preference value for \"#{key}\" in \"#{domain}\"#{", hostname: #{hostname}" if hostname}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corefoundation-0.3.13 lib/corefoundation/exceptions.rb
corefoundation-0.3.10 lib/corefoundation/exceptions.rb
corefoundation-0.3.4 lib/corefoundation/exceptions.rb