Class: Jumbotron::Errors::Adapters::LeagueNotFoundError
- Inherits:
-
CommandTower::Errors::ApplicationError
- Object
- CommandTower::Errors::ApplicationError
- Jumbotron::Errors::Adapters::LeagueNotFoundError
- Defined in:
- app/errors/jumbotron/errors/adapters.rb
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
39 40 41 |
# File 'app/errors/jumbotron/errors/adapters.rb', line 39 def code "league_not_found" end |
#message ⇒ Object
43 44 45 46 |
# File 'app/errors/jumbotron/errors/adapters.rb', line 43 def league_id = details.is_a?(Hash) ? details[:league_id] : nil league_id ? "league #{league_id} not found" : "league not found" end |