From 6ddbccbc958d7925951ab6a1d035b3764f402759 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Thu, 3 Feb 2022 00:02:24 +0100 Subject: [PATCH] Add new exception for parsing issues --- src/invidious/exceptions.cr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/invidious/exceptions.cr diff --git a/src/invidious/exceptions.cr b/src/invidious/exceptions.cr new file mode 100644 index 00000000..391a574d --- /dev/null +++ b/src/invidious/exceptions.cr @@ -0,0 +1,8 @@ +# Exception used to hold the name of the missing item +# Should be used in all parsing functions +class BrokenTubeException < InfoException + getter element : String + + def initialize(@element) + end +end