Exception: Wiq::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Wiq::Error
- Defined in:
- lib/wiq/errors.rb
Direct Known Subclasses
APIError, ConfigError, ReportFailedError, ReportTimeoutError, SeasonNotFoundError, SeasonUnsupportedError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#hint ⇒ Object
readonly
Returns the value of attribute hint.
Instance Method Summary collapse
-
#initialize(message, code: "error", hint: nil, exit_code: 1, details: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: "error", hint: nil, exit_code: 1, details: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 13 |
# File 'lib/wiq/errors.rb', line 7 def initialize(, code: "error", hint: nil, exit_code: 1, details: nil) super() @code = code @hint = hint @exit_code = exit_code @details = details end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/wiq/errors.rb', line 5 def code @code end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
5 6 7 |
# File 'lib/wiq/errors.rb', line 5 def details @details end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
5 6 7 |
# File 'lib/wiq/errors.rb', line 5 def exit_code @exit_code end |
#hint ⇒ Object (readonly)
Returns the value of attribute hint.
5 6 7 |
# File 'lib/wiq/errors.rb', line 5 def hint @hint end |