Skip to content
Browse files

spdx-utils: Make SpdxException an unchecked exception

Derive SpdxException from RuntimeException to make it an unchecked
exception. This makes parse() more convenient to use from Java code as
SpdxException then does not need to be catched or declared as part of a
a method signature, e.g. because some preprocessing already ensured a
correct syntax of the expression.

Signed-off-by: Sebastian Schuberth <>
  • Loading branch information...
sschuberth committed Oct 8, 2019
1 parent 079c0ae commit f8d99920c97da1b4cf72f2617d54bf5f8e982563
Showing with 1 addition and 1 deletion.
  1. +1 −1 spdx-utils/src/main/kotlin/SpdxException.kt
@@ -19,7 +19,7 @@


class SpdxException : Exception {
class SpdxException : RuntimeException {
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(message: String?) : super(message)
constructor(cause: Throwable?) : super(cause)

0 comments on commit f8d9992

Please sign in to comment.
You can’t perform that action at this time.