Exception: Bunny::AuthenticationFailureError

Inherits:
PossibleAuthenticationFailureError show all
Defined in:
lib/bunny/exceptions.rb

Overview

Raised when RabbitMQ closes TCP connection due to an authentication failure. Relies on RabbitMQ 3.2 Authentication Failure Notifications extension: http://www.rabbitmq.com/auth-notification.html

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, vhost, password_length) ⇒ AuthenticationFailureError

Returns a new instance of AuthenticationFailureError



133
134
135
136
137
138
# File 'lib/bunny/exceptions.rb', line 133

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

  super(username, vhost, password_length)
end

Instance Attribute Details

#usernameObject (readonly)

API



131
132
133
# File 'lib/bunny/exceptions.rb', line 131

def username
  @username
end

#vhostObject (readonly)

API



131
132
133
# File 'lib/bunny/exceptions.rb', line 131

def vhost
  @vhost
end