From 832257234d0f2d0f9f4cd18146ac13e13f659a59 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 5 Nov 2010 20:58:41 +0000 Subject: [PATCH] New overloads for constructing MalformedJsonException --- .../google/gson/stream/MalformedJsonException.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gson/src/main/java/com/google/gson/stream/MalformedJsonException.java b/gson/src/main/java/com/google/gson/stream/MalformedJsonException.java index 6d9281bc..6d84e878 100644 --- a/gson/src/main/java/com/google/gson/stream/MalformedJsonException.java +++ b/gson/src/main/java/com/google/gson/stream/MalformedJsonException.java @@ -25,7 +25,16 @@ import java.io.IOException; public final class MalformedJsonException extends IOException { private static final long serialVersionUID = 1L; - public MalformedJsonException(String s) { - super(s); + public MalformedJsonException(String msg) { + super(msg); + } + + public MalformedJsonException(String msg, Throwable throwable) { + super(msg); + initCause(throwable); + } + + public MalformedJsonException(Throwable throwable) { + initCause(throwable); } }