Exception: GorgonBunny::PossibleAuthenticationFailureError
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- GorgonBunny::PossibleAuthenticationFailureError
- 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
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.
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
#username ⇒ Object (readonly)
API
84 85 86 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 84 def username @username end |
#vhost ⇒ Object (readonly)
API
84 85 86 |
# File 'lib/gorgon_bunny/lib/gorgon_bunny/exceptions.rb', line 84 def vhost @vhost end |