style: include LEST_LOST_EXCEPTION_STACK_TRACE
(#5150)
This commit is contained in:
parent
ee6924a2a0
commit
7bff82f175
@ -252,9 +252,6 @@
|
||||
<Match>
|
||||
<Bug pattern="FCCD_FIND_CLASS_CIRCULAR_DEPENDENCY" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="LEST_LOST_EXCEPTION_STACK_TRACE" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="PL_PARALLEL_LISTS" />
|
||||
</Match>
|
||||
|
@ -10,4 +10,8 @@ public class EmptyHeapException extends Exception {
|
||||
public EmptyHeapException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public EmptyHeapException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ public class MaxHeap implements Heap {
|
||||
try {
|
||||
return extractMax();
|
||||
} catch (Exception e) {
|
||||
throw new EmptyHeapException("Heap is empty. Error retrieving element");
|
||||
throw new EmptyHeapException("Heap is empty. Error retrieving element", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ public class MinHeap implements Heap {
|
||||
try {
|
||||
return extractMin();
|
||||
} catch (Exception e) {
|
||||
throw new EmptyHeapException("Heap is empty. Error retrieving element");
|
||||
throw new EmptyHeapException("Heap is empty. Error retrieving element", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user