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)
-
- (String|Hash|NilClass) details
readonly
The details of the error.
Instance Method Summary (collapse)
-
- (Base) initialize(details = nil)
constructor
Creates a new error.
Constructor Details
- (Base) initialize(details = nil)
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
- (String|Hash|NilClass) details (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 |