Exception: Namira::Errors::RedirectError
- Defined in:
- lib/namira/errors/redirect_error.rb
Overview
A RedirectError
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
The number of redirects that occured.
-
#location ⇒ String
readonly
The location the redirect is pointing to.
-
#message ⇒ String
readonly
Will contain information about the error.
Instance Method Summary collapse
-
#initialize(msg, location, count) ⇒ RedirectError
constructor
Creates a new instance.
Constructor Details
#initialize(msg, location, count) ⇒ RedirectError
Creates a new instance
21 22 23 24 25 |
# File 'lib/namira/errors/redirect_error.rb', line 21 def initialize(msg, location, count) super(msg) @location = location @count = count end |
Instance Attribute Details
#count ⇒ Integer (readonly)
The number of redirects that occured
17 18 19 |
# File 'lib/namira/errors/redirect_error.rb', line 17 def count @count end |
#location ⇒ String (readonly)
The location the redirect is pointing to
12 13 14 |
# File 'lib/namira/errors/redirect_error.rb', line 12 def location @location end |
#message ⇒ String (readonly)
Returns Will contain information about the error.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/namira/errors/redirect_error.rb', line 8 class RedirectError < BaseError ## # The location the redirect is pointing to # @return [String] attr_reader :location ## # The number of redirects that occured # @return [Integer] attr_reader :count ## # Creates a new instance def initialize(msg, location, count) super(msg) @location = location @count = count end end |