Sha256: 5cf709aa7788a7b515e514366aa6ae815e73d205932ca56a9cdcb8e76aba871a

Contents?: true

Size: 645 Bytes

Versions: 17

Compression:

Stored size: 645 Bytes

Contents

module ComplexConfig
  class ComplexConfigError < StandardError
    def self.wrap(klass, e)
      Class === klass or klass = ComplexConfig.const_get(klass)
      error = klass.new(e.message)
      error.set_backtrace(e.backtrace)
      error
    end
  end

  class AttributeMissing < ComplexConfigError
  end

  class ConfigurationFileMissing < ComplexConfigError
  end

  class ConfigurationSyntaxError < ComplexConfigError
  end

  class EncryptionError < ComplexConfigError
  end

  class EncryptionKeyInvalid < EncryptionError
  end

  class EncryptionKeyMissing < EncryptionError
  end

  class DecryptionFailed < EncryptionError
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
complex_config-0.22.2 lib/complex_config/errors.rb
complex_config-0.22.1 lib/complex_config/errors.rb
complex_config-0.22.0 lib/complex_config/errors.rb
complex_config-0.21.2 lib/complex_config/errors.rb
complex_config-0.21.1 lib/complex_config/errors.rb
complex_config-0.21.0 lib/complex_config/errors.rb
complex_config-0.20.0 lib/complex_config/errors.rb
complex_config-0.19.4 lib/complex_config/errors.rb
complex_config-0.19.3 lib/complex_config/errors.rb
complex_config-0.19.2 lib/complex_config/errors.rb
complex_config-0.19.1 lib/complex_config/errors.rb
complex_config-0.19.0 lib/complex_config/errors.rb
complex_config-0.18.2 lib/complex_config/errors.rb
complex_config-0.18.1 lib/complex_config/errors.rb
complex_config-0.18.0 lib/complex_config/errors.rb
complex_config-0.17.1 lib/complex_config/errors.rb
complex_config-0.17.0 lib/complex_config/errors.rb