Skip to content

Commit

Permalink
Added cause as private attribute
Browse files Browse the repository at this point in the history
The `cause` itself will stores the exception temporarily and get thrown later.
  • Loading branch information
mitsuki31 authored Jun 22, 2023
1 parent 5cf9f61 commit ff14d89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/com/mitsuki/jmatrix/Matrix.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ public class Matrix implements MatrixUtils {
*/
private boolean hasSelect = false;

/**
* This variable stores the exception that want to be thrown.
*
* <p>The value itself is currently {@code null} unless it stored an exception.
*
* @see java.lang.Throwable
*/
private static Throwable cause = null;


/**
* A threshold for {@code double} comparison.
Expand Down

0 comments on commit ff14d89

Please sign in to comment.