Skip to content

Commit 6bab557

Browse files
anarchuserxeruf
authored andcommitted
refactor(sdk): convert InvalidGameStateException to kotlin
1 parent 1d9e592 commit 6bab557

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
package sc.shared;
1+
package sc.shared
2+
3+
import kotlin.RuntimeException
24

35
/**
46
* This exception is thrown if the server tried to create an invalid game state.
57
* This indicates an error in the server or plugin code. It should never be
68
* thrown on invalid input to the server (i.e. invalid move made).
79
*/
8-
public class InvalidGameStateException extends RuntimeException {
9-
10-
public InvalidGameStateException(String reason) {
11-
super(reason);
12-
}
13-
14-
}
10+
class InvalidGameStateException(reason: String): RuntimeException(reason)

0 commit comments

Comments
 (0)