invidious/src/invidious/exceptions.cr

25 行
554 B
Crystal
Raw 通常表示 履歴

2022-03-27 09:20:00 +09:00
# Exception used to hold the bogus UCID during a channel search.
class ChannelSearchException < InfoException
getter channel : String
def initialize(@channel)
end
end
2022-02-03 08:02:24 +09:00
# Exception used to hold the name of the missing item
# Should be used in all parsing functions
class BrokenTubeException < Exception
2022-02-03 08:02:24 +09:00
getter element : String
def initialize(@element)
end
def message
return "Missing JSON element \"#{@element}\""
end
2022-02-03 08:02:24 +09:00
end
# Exception used to hold the bogus UCID during a channel search.
class NotFoundException < InfoException
end