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.



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

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



119
120
121
# File 'lib/bunny/exceptions.rb', line 119

def username
  @username
end

#vhostObject (readonly)

API



119
120
121
# File 'lib/bunny/exceptions.rb', line 119

def vhost
  @vhost
end