Skip to content

Commit 25055d9

Browse files
committed
Fixed wrong type in exceptions
1 parent 1cb5d1f commit 25055d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/dev/imanity/bbbapi/exception/RequestException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package dev.imanity.bbbapi.exception
33
open class RequestException : Exception {
44

55
constructor(): super()
6-
constructor(exception: Exception) : super(exception)
6+
constructor(exception: Throwable) : super(exception)
77
constructor(message: String): super(message)
88

99
}

src/main/kotlin/dev/imanity/bbbapi/exception/RequestThrowsException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ package dev.imanity.bbbapi.exception
22

33
import java.lang.Exception
44

5-
class RequestThrowsException(val exception: Exception): RequestException(exception)
5+
class RequestThrowsException(val exception: Throwable): RequestException(exception)

0 commit comments

Comments
 (0)