Exception: Bunny::PossibleAuthenticationFailureError
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- Bunny::PossibleAuthenticationFailureError
- 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
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
API.
-
#vhost ⇒ Object
readonly
API.
Instance Method Summary collapse
-
#initialize(username, vhost, password_length) ⇒ PossibleAuthenticationFailureError
constructor
A new instance of PossibleAuthenticationFailureError.
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
#username ⇒ Object (readonly)
API
117 118 119 |
# File 'lib/bunny/exceptions.rb', line 117 def username @username end |
#vhost ⇒ Object (readonly)
API
117 118 119 |
# File 'lib/bunny/exceptions.rb', line 117 def vhost @vhost end |