Invidious is an alternative front-end to YouTube
Move InfoException to exceptions.cr
Samantaz Fox7e648840a121
diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.crindex 471a199a..05be73a6 100644--- a/src/invidious/exceptions.cr+++ b/src/invidious/exceptions.cr@@ -1,3 +1,11 @@+# InfoExceptions are for displaying information to the user.+#+# An InfoException might or might not indicate that something went wrong.+# Historically Invidious didn't differentiate between these two options, so to+# maintain previous functionality InfoExceptions do not print backtraces.+class InfoException < Exception+end+# Exception used to hold the bogus UCID during a channel search.class ChannelSearchException < InfoExceptiongetter channel : Stringdiff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.crindex b80dcdaf..6e5a975d 100644--- a/src/invidious/helpers/errors.cr+++ b/src/invidious/helpers/errors.cr@@ -1,11 +1,3 @@-# InfoExceptions are for displaying information to the user.-#-# An InfoException might or might not indicate that something went wrong.-# Historically Invidious didn't differentiate between these two options, so to-# maintain previous functionality InfoExceptions do not print backtraces.-class InfoException < Exception-end-# -------------------# Issue template# -------------------