diff --git a/revanced-patcher/api/revanced-patcher.api b/revanced-patcher/api/revanced-patcher.api index d1c75d8..4cb3924 100644 --- a/revanced-patcher/api/revanced-patcher.api +++ b/revanced-patcher/api/revanced-patcher.api @@ -371,15 +371,15 @@ public final class app/revanced/patcher/patch/options/PatchOptionException$Inval public fun (Ljava/lang/String;Ljava/lang/String;)V } -public final class app/revanced/patcher/patch/options/PatchOptionException$PatchOptionNotFoundException : java/lang/Exception { +public final class app/revanced/patcher/patch/options/PatchOptionException$PatchOptionNotFoundException : app/revanced/patcher/patch/options/PatchOptionException { public fun (Ljava/lang/String;)V } -public final class app/revanced/patcher/patch/options/PatchOptionException$ValueRequiredException : java/lang/Exception { +public final class app/revanced/patcher/patch/options/PatchOptionException$ValueRequiredException : app/revanced/patcher/patch/options/PatchOptionException { public fun (Lapp/revanced/patcher/patch/options/PatchOption;)V } -public final class app/revanced/patcher/patch/options/PatchOptionException$ValueValidationException : java/lang/Exception { +public final class app/revanced/patcher/patch/options/PatchOptionException$ValueValidationException : app/revanced/patcher/patch/options/PatchOptionException { public fun (Ljava/lang/Object;Lapp/revanced/patcher/patch/options/PatchOption;)V } diff --git a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/options/PatchOptionException.kt b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/options/PatchOptionException.kt index 1f84803..676f6e1 100644 --- a/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/options/PatchOptionException.kt +++ b/revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/options/PatchOptionException.kt @@ -21,7 +21,7 @@ sealed class PatchOptionException(errorMessage: String) : Exception(errorMessage * @param value The value that failed validation. */ class ValueValidationException(value: Any?, option: PatchOption<*>) : - Exception("The option value \"$value\" failed validation for ${option.key}") + PatchOptionException("The option value \"$value\" failed validation for ${option.key}") /** * An exception thrown when a value is required but null was passed. @@ -29,7 +29,7 @@ sealed class PatchOptionException(errorMessage: String) : Exception(errorMessage * @param option The [PatchOption] that requires a value. */ class ValueRequiredException(option: PatchOption<*>) : - Exception("The option ${option.key} requires a value, but null was passed") + PatchOptionException("The option ${option.key} requires a value, but null was passed") /** * An exception thrown when a [PatchOption] is not found. @@ -37,5 +37,5 @@ sealed class PatchOptionException(errorMessage: String) : Exception(errorMessage * @param key The key of the [PatchOption]. */ class PatchOptionNotFoundException(key: String) - : Exception("No option with key $key") + : PatchOptionException("No option with key $key") } \ No newline at end of file