invidious-experimenting/src/invidious/exceptions.cr

13 lines
269 B
Crystal
Raw Normal View History

2022-02-03 04:32:24 +05:30
# Exception used to hold the name of the missing item
# Should be used in all parsing functions
class BrokenTubeException < Exception
2022-02-03 04:32:24 +05:30
getter element : String
def initialize(@element)
end
def message
return "Missing JSON element \"#{@element}\""
end
2022-02-03 04:32:24 +05:30
end