diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-07-19 21:05:49 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-07-19 21:05:49 +0200 |
| commit | 7e648840a1215ddeb8b110eb867893826b73384c (patch) | |
| tree | 5d69e324a9051501543b6917db645ab1b500a94a /src | |
| parent | 049ed114fd2d7c3debf6277935d6dbf5aca6777a (diff) | |
| download | invidious-7e648840a1215ddeb8b110eb867893826b73384c.tar.gz invidious-7e648840a1215ddeb8b110eb867893826b73384c.tar.bz2 invidious-7e648840a1215ddeb8b110eb867893826b73384c.zip | |
Move InfoException to exceptions.cr
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/exceptions.cr | 8 | ||||
| -rw-r--r-- | src/invidious/helpers/errors.cr | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.cr index 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 < InfoException getter channel : String diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index 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 # ------------------- |
