Exception: Stackd::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Stackd::Error
- Includes:
- Concerns::RequireAttr, Concerns::TattrAccessor
- Defined in:
- lib/stackd/error.rb
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Methods included from Concerns::RequireAttr
Methods included from Concerns::TattrAccessor
Constructor Details
#initialize(attrs) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/stackd/error.rb', line 11 def initialize attrs attrs.each do |key, val| public_send :"#{key}=", val if tattr? key end begin require_attr! :error rescue Concerns::RequireAttr::AttrNotSetError => e raise ArgumentError.new e. end end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/stackd/error.rb', line 23 def error_description end |