Exception: MarchHare::PossibleAuthenticationFailureError
- Inherits:
-
Exception
- Object
- StandardError
- Exception
- MarchHare::PossibleAuthenticationFailureError
- Defined in:
- lib/march_hare/exceptions.rb
Overview
Raised when RabbitMQ closes network connection before finalizing the connection, typically indicating authentication failure.
RabbitMQ versions beyond 3.2 use a better defined authentication failure notifications.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#vhost ⇒ Object
readonly
Returns the value of attribute vhost.
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.
53 54 55 56 57 58 |
# File 'lib/march_hare/exceptions.rb', line 53 def initialize(username, vhost, password_length) @username = username @vhost = vhost super("Authentication with RabbitMQ failed or RabbitMQ version used does not support AMQP 0-9-1. Username: #{username}, vhost: #{vhost}, password length: #{password_length}. Please check your configuration.") end |
Instance Attribute Details
#username ⇒ Object (readonly)
Returns the value of attribute username.
51 52 53 |
# File 'lib/march_hare/exceptions.rb', line 51 def username @username end |
#vhost ⇒ Object (readonly)
Returns the value of attribute vhost.
51 52 53 |
# File 'lib/march_hare/exceptions.rb', line 51 def vhost @vhost end |