Exception: Ballast::Errors::Base
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ballast::Errors::Base
- Defined in:
- lib/ballast/errors.rb
Overview
The base error raised from an application.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#details ⇒ String|Hash|NilClass
readonly
The details of the error.
Instance Method Summary collapse
-
#initialize(details = nil) ⇒ Base
constructor
Creates a new error.
Constructor Details
#initialize(details = nil) ⇒ Base
Creates a new error.
19 20 21 22 |
# File 'lib/ballast/errors.rb', line 19 def initialize(details = nil) super("") @details = details end |
Instance Attribute Details
#details ⇒ String|Hash|NilClass (readonly)
Returns The details of the error. If a Hash, it should contain the keys status
and error
.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ballast/errors.rb', line 13 class Base < RuntimeError attr_reader :details # Creates a new error. # # @param details [String|Hash|NilClass] The details of this error. def initialize(details = nil) super("") @details = details end end |