Exception: Hpa::HpaError
- Inherits:
-
StandardError
- Object
- StandardError
- Hpa::HpaError
- Defined in:
- lib/hpa/errors/hpa_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status = nil, message = nil) ⇒ HpaError
constructor
A new instance of HpaError.
- #to_s ⇒ Object
Constructor Details
#initialize(status = nil, message = nil) ⇒ HpaError
Returns a new instance of HpaError.
6 7 8 9 |
# File 'lib/hpa/errors/hpa_error.rb', line 6 def initialize(status=nil, =nil) @status = status = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/hpa/errors/hpa_error.rb', line 4 def end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/hpa/errors/hpa_error.rb', line 4 def status @status end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/hpa/errors/hpa_error.rb', line 11 def to_s [status, ].compact.join(" ") end |