summaryrefslogtreecommitdiff
path: root/src/invidious/exceptions.cr
blob: bfaa3fd5d5a21f0d67bba8f9a58536429747b299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Exception used to hold the bogus UCID during a channel search.
class ChannelSearchException < InfoException
  getter channel : String

  def initialize(@channel)
  end
end

# Exception used to hold the name of the missing item
# Should be used in all parsing functions
class BrokenTubeException < Exception
  getter element : String

  def initialize(@element)
  end

  def message
    return "Missing JSON element \"#{@element}\""
  end
end