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.



124
125
126
127
128
129
# File 'lib/bunny/exceptions.rb', line 124

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



122
123
124
# File 'lib/bunny/exceptions.rb', line 122

def username
  @username
end

#vhostObject (readonly)

API



122
123
124
# File 'lib/bunny/exceptions.rb', line 122

def vhost
  @vhost
end