Skip to content
Snippets Groups Projects
Commit d363eccc authored by Mamadu-lamarana Bah's avatar Mamadu-lamarana Bah :speech_balloon:
Browse files

ajout d'une exception qui hérite de RuntimeException au lieu d'utiliser...

ajout d'une exception qui hérite de RuntimeException au lieu d'utiliser directement celle génerique RuntimeException
parent 22e1cae5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment