Skip to content

Commit 9fe7c50

Browse files
anarchuserxeruf
authored andcommitted
refactor(sdk): convert InvalidMoveException to kotlin
1 parent 6bab557 commit 9fe7c50

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

socha-sdk/src/framework/sc/shared/InvalidMoveException.java

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package sc.shared
2+
3+
import sc.api.plugins.IMove
4+
import kotlin.RuntimeException
5+
6+
/** NOTE: It is important to have information about the move in the reason
7+
* because that is the only place where the invalid move is logged */
8+
class InvalidMoveException(reason: String, @JvmField val move: IMove? = null):
9+
RuntimeException(reason + (if (move != null) "; move was $move" else ""))

0 commit comments

Comments
 (0)