Exception: GorgonBunny::PossibleAuthenticationFailureError

Inherits:
Exception
  • Object
show all
Defined in:
lib/gorgon_bunny/lib/gorgon_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.



86
87
88
89
90
91
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 86

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



84
85
86
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 84

def username
  @username
end

#vhostObject (readonly)

API



84
85
86
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 84

def vhost
  @vhost
end