From d25c2b296482b09f57e5c6f475f8d80ec52d3978 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sat, 24 Aug 2024 19:40:28 +0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20custom=20error=20types=20for?= =?UTF-8?q?=20interrupted=20and=20no=20internet=20connection=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_errors/errors.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_errors/errors.go b/custom_errors/errors.go index 6bc7ab2..890d5a2 100644 --- a/custom_errors/errors.go +++ b/custom_errors/errors.go @@ -10,6 +10,8 @@ import ( var ( ErrInvalidJSON = errors.New("invalid JSON file") ErrInvalidFile = errors.New("invalid file") + ErrInterrupt = errors.New("interrupted") + ErrNoInternet = errors.New("no internet connection") ) func As(err error, target any) bool {