Sha256: a55a90f3f7cf400507133ad070f6201f22edd6eca8087a0b96e78f1b893a7136

Contents?: true

Size: 565 Bytes

Versions: 12

Compression:

Stored size: 565 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module EML
  module TNS
    class AuthenticationError < ::EML::TNSError
      sig { params(message: T.nilable(String)).void }
      def initialize(message = nil)
        message ||= "An unexpected authorization token was supplied in the " \
          "request. Please check that you have set the correct tns_username " \
          "and tns_password in your config and that EML is using the same " \
          "credentials. Failing this, it is possible you are being attacked"
        super
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eml-3.0.0 lib/eml/error/tns/authentication.rb
eml-2.2.0 lib/eml/error/tns/authentication.rb
eml-2.1.8 lib/eml/error/tns/authentication.rb
eml-2.1.7 lib/eml/error/tns/authentication.rb
eml-2.1.6 lib/eml/error/tns/authentication.rb
eml-2.1.5 lib/eml/error/tns/authentication.rb
eml-2.1.4 lib/eml/error/tns/authentication.rb
eml-2.1.3 lib/eml/error/tns/authentication.rb
eml-2.1.2 lib/eml/error/tns/authentication.rb
eml-2.1.1 lib/eml/error/tns/authentication.rb
eml-2.1.0 lib/eml/error/tns/authentication.rb
eml-2.0.0 lib/eml/error/tns/authentication.rb