diff --git a/gson/extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java b/gson/extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java index 7868a133528c8b1361b0100e076cf250d536803a..fed8c9a5ce7e6b3469c0ddd174e6b30979dcf86b 100644 --- a/gson/extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java +++ b/gson/extras/src/main/java/com/google/gson/interceptors/InterceptorFactory.java @@ -47,7 +47,7 @@ public final class InterceptorFactory implements TypeAdapterFactory { this.delegate = delegate; this.postDeserializer = intercept.postDeserialize().getDeclaredConstructor().newInstance(); } catch (Exception e) { - throw new RuntimeException(e); + throw new MyRuntimeException(e); } } diff --git a/gson/extras/src/main/java/com/google/gson/interceptors/MyRuntimeException.java b/gson/extras/src/main/java/com/google/gson/interceptors/MyRuntimeException.java new file mode 100644 index 0000000000000000000000000000000000000000..6366ef198856256f4a6aeaa6c82bf6c3cfc17361 --- /dev/null +++ b/gson/extras/src/main/java/com/google/gson/interceptors/MyRuntimeException.java @@ -0,0 +1,9 @@ +package com.google.gson.interceptors; + +public class MyRuntimeException extends RuntimeException { + private static final long serialVersionUID = 1L; // Identifiant unique pour cette classe + + public MyRuntimeException(Throwable e) { + super(e); + } +} \ No newline at end of file