Skip to content

Commit 8c946dc

Browse files
committed
Refactor toException() method in WrappedException to return WrappedExceptionException
1 parent 2c21ad4 commit 8c946dc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Enhance WrappedExceptionException with detailed exception information
1+
Refactor toException() method in WrappedException to return WrappedExceptionException

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group = 'eth.likespro'
8-
version = '1.8.1'
8+
version = '1.8.2'
99

1010
sourceCompatibility = 17
1111
targetCompatibility = 17

src/main/java/eth/likespro/commons/wrapping/WrappedException.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ class WrappedException(
6262
}
6363
}
6464

65-
fun toException(): Exception {
65+
/**
66+
* Converts the wrapped exception to a WrappedExceptionException.
67+
*
68+
* @return The WrappedExceptionException.
69+
*/
70+
fun toException(): WrappedExceptionException {
6671
return WrappedExceptionException(this)
6772
}
6873
}

0 commit comments

Comments
 (0)