Exception: Wiq::SeasonUnsupportedError
- Defined in:
- lib/wiq/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(type, matches) ⇒ SeasonUnsupportedError
constructor
A new instance of SeasonUnsupportedError.
Constructor Details
#initialize(type, matches) ⇒ SeasonUnsupportedError
Returns a new instance of SeasonUnsupportedError.
164 165 166 167 168 169 170 |
# File 'lib/wiq/errors.rb', line 164 def initialize(type, matches) super( "Season #{matches.size > 1 ? "is ambiguous" : "cannot be applied automatically"} for report type #{type}.", code: "season_unsupported_for_type", hint: "Pass --paid-session <id> explicitly. Matching paid sessions: #{matches.map { |m| m["id"] }.join(", ")}" ) end |