From 8272a7edfedb371c4f59d55133116dd1d8775dd7 Mon Sep 17 00:00:00 2001 From: Adrian Viegas Date: Tue, 24 Oct 2023 18:53:12 +0530 Subject: [PATCH] Propagating exception message --- .../kiteconnect/kitehttp/exceptions/KiteException.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiteconnect/src/com/zerodhatech/kiteconnect/kitehttp/exceptions/KiteException.java b/kiteconnect/src/com/zerodhatech/kiteconnect/kitehttp/exceptions/KiteException.java index f93b7ea..b1596df 100755 --- a/kiteconnect/src/com/zerodhatech/kiteconnect/kitehttp/exceptions/KiteException.java +++ b/kiteconnect/src/com/zerodhatech/kiteconnect/kitehttp/exceptions/KiteException.java @@ -14,11 +14,13 @@ public class KiteException extends Throwable { // constructor that sets the message public KiteException(String message){ this.message = message; + super(message); } // constructor that sets the message and code public KiteException(String message, int code){ this.message = message; this.code = code; + super(message, code); } }