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.



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

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



117
118
119
# File 'lib/bunny/exceptions.rb', line 117

def username
  @username
end

#vhostObject (readonly)

API



117
118
119
# File 'lib/bunny/exceptions.rb', line 117

def vhost
  @vhost
end