Sha256: 2428a9139a6e1f5a01a2ad22b3fd93e3c34a61a2573eea0e9ddba6bbd32b4324

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

require 'riak/errors/base'

module Riak
  class ConnectionError < Error
  end

  class TlsError < ConnectionError
    class SslVersionConfigurationError < TlsError
      def initialize
        super t('ssl.version_configuration_error')
      end
    end

    class CertHostMismatchError < TlsError
      def initialize
        super t('ssl.cert_host_mismatch')
      end
    end

    class CertNotValidError < TlsError
      def initialize
        super t('ssl.cert_not_valid')
      end
    end

    class CertRevokedError < TlsError
      def initialize
        super t('ssl.cert_revoked')
      end
    end

    class ReadDataError < TlsError
      def initialize(actual, candidate)
        super t('ssl.read_data_error', actual: actual, candidate: candidate)
      end
    end

    class UnknownKeyTypeError < TlsError
      def initialize
        super t('ssl.unknown_key_type')
      end
    end
  end

  class UserConfigurationError < ConnectionError
    def initialize
      super t('pbc.user_not_username')
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
riak-client-2.6.0 lib/riak/errors/connection_error.rb
riak-client-2.5.0 lib/riak/errors/connection_error.rb
riak-client-2.3.0 lib/riak/errors/connection_error.rb
riak-client-2.2.2 lib/riak/errors/connection_error.rb
riak-client-2.2.1 lib/riak/errors/connection_error.rb
riak-client-noenc-1.0.0 lib/riak/errors/connection_error.rb
riak-client-2.2.0 lib/riak/errors/connection_error.rb
riak-client-2.2.0.pre1 lib/riak/errors/connection_error.rb
riak-client-2.1.0 lib/riak/errors/connection_error.rb
riak-client-2.0.0 lib/riak/errors/connection_error.rb
riak-client-2.0.0.rc2 lib/riak/errors/connection_error.rb