-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) subclassing exceptions to group them up
- Loading branch information
Showing
4 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/judas/sgf4k/feature/exceptions/InvalidGameException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.judas.sgf4k.feature.exceptions | ||
|
||
class InvalidGameException(reason: String) : Exception("Invalid game: $reason") | ||
class InvalidGameException(reason: String) : Sgf4kRuntimeException("Invalid game: $reason") |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/judas/sgf4k/feature/exceptions/InvalidGameNodeException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.judas.sgf4k.feature.exceptions | ||
|
||
class InvalidGameNodeException(reason: String) : Exception("Invalid game node: $reason") | ||
class InvalidGameNodeException(reason: String) : Sgf4kRuntimeException("Invalid game node: $reason") |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/judas/sgf4k/feature/exceptions/InvalidSgfException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.judas.sgf4k.feature.exceptions | ||
|
||
class InvalidSgfException(reason: String) : Exception("Invalid SGF file: $reason") | ||
class InvalidSgfException(reason: String) : Sgf4kRuntimeException("Invalid SGF file: $reason") |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/com/judas/sgf4k/feature/exceptions/Sgf4kRuntimeException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.judas.sgf4k.feature.exceptions | ||
|
||
class Sgf4kRuntimeException(reason: String) : Exception("Error while processing: $reason") | ||
open class Sgf4kRuntimeException(reason: String) : Exception("Error while processing: $reason") |