Skip to content

Commit 9461ebd

Browse files
committed
remove unnecessary ctor from AggregateException
1 parent 0d19941 commit 9461ebd

File tree

1 file changed

+2
-9
lines changed
  • projects/kediatr-core/src/main/kotlin/com/trendyol/kediatr

1 file changed

+2
-9
lines changed

projects/kediatr-core/src/main/kotlin/com/trendyol/kediatr/exceptions.kt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,5 @@ class AggregateException(
4343
* The collection of exceptions that were aggregated.
4444
* Contains all the individual exceptions that occurred during the operation.
4545
*/
46-
val exceptions: Collection<Throwable>
47-
) : RuntimeException() {
48-
/**
49-
* Constructor that accepts an array of exceptions.
50-
*
51-
* @param exceptions Array of exceptions to aggregate
52-
*/
53-
constructor(exceptions: Array<Throwable>) : this(exceptions.toList())
54-
}
46+
val exceptions: Iterable<Throwable>
47+
) : RuntimeException()

0 commit comments

Comments
 (0)