Exception: Bunny::PossibleAuthenticationFailureError

Inherits:
Exception
  • Object
show all
Defined in:
lib/bunny/exceptions.rb

Overview

Raised when RabbitMQ closes TCP connection before finishing connection sequence properly. This typically indicates an authentication issue.

Direct Known Subclasses

AuthenticationFailureError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, vhost, password_length) ⇒ PossibleAuthenticationFailureError

Returns a new instance of PossibleAuthenticationFailureError



113
114
115
116
117
118
# File 'lib/bunny/exceptions.rb', line 113

def initialize(username, vhost, password_length)
  @username = username
  @vhost    = vhost

  super("Authentication with RabbitMQ failed. Please check your connection settings. Username: #{username}, vhost: #{vhost}, password length: #{password_length}")
end

Instance Attribute Details

#usernameObject (readonly)

API



111
112
113
# File 'lib/bunny/exceptions.rb', line 111

def username
  @username
end

#vhostObject (readonly)

API



111
112
113
# File 'lib/bunny/exceptions.rb', line 111

def vhost
  @vhost
end