@@ -18,7 +18,7 @@ public class Event {
1818 private Configuration config ;
1919
2020 private String apiKey ;
21- private final Exception exception ;
21+ private final Error error ;
2222 private HandledState handledState ;
2323 private Severity severity ;
2424 private String groupingHash ;
@@ -47,7 +47,7 @@ protected Event(Configuration config, Throwable throwable) {
4747 Event (Configuration config , Throwable throwable ,
4848 HandledState handledState , Thread currentThread , FeatureFlagStore clientFeatureFlagStore ) {
4949 this .config = config ;
50- this .exception = new Exception (config , throwable );
50+ this .error = new Error (config , throwable );
5151 this .handledState = handledState ;
5252 this .severity = handledState .getOriginalSeverity ();
5353 diagnostics = new Diagnostics (this .config );
@@ -78,17 +78,17 @@ protected String getPayloadVersion() {
7878 * @return the exceptions that make up the error.
7979 */
8080 @ Expose
81- protected List <Exception > getExceptions () {
82- List <Exception > exceptions = new ArrayList <Exception >();
83- exceptions .add (exception );
81+ protected List <Error > getErrors () {
82+ List <Error > errors = new ArrayList <Error >();
83+ errors .add (error );
8484
85- Throwable currentThrowable = exception .getThrowable ().getCause ();
85+ Throwable currentThrowable = error .getThrowable ().getCause ();
8686 while (currentThrowable != null ) {
87- exceptions .add (new Exception (config , currentThrowable ));
87+ errors .add (new Error (config , currentThrowable ));
8888 currentThrowable = currentThrowable .getCause ();
8989 }
9090
91- return exceptions ;
91+ return errors ;
9292 }
9393
9494 @ Expose
@@ -168,14 +168,14 @@ void setSession(Session session) {
168168 * report.
169169 */
170170 public Throwable getException () {
171- return exception .getThrowable ();
171+ return error .getThrowable ();
172172 }
173173
174174 /**
175175 * @return the class name from the exception contained in this error report.
176176 */
177177 public String getExceptionName () {
178- return exception .getErrorClass ();
178+ return error .getErrorClass ();
179179 }
180180
181181 /**
@@ -184,14 +184,14 @@ public String getExceptionName() {
184184 * @param exceptionName the error name
185185 */
186186 public void setExceptionName (String exceptionName ) {
187- exception .setErrorClass (exceptionName );
187+ error .setErrorClass (exceptionName );
188188 }
189189
190190 /**
191191 * @return The message from the exception contained in this error report.
192192 */
193193 public String getExceptionMessage () {
194- return exception .getThrowable ().getLocalizedMessage ();
194+ return error .getThrowable ().getLocalizedMessage ();
195195 }
196196
197197 /**
0 commit comments