Skip to content

Commit 2c4b88e

Browse files
authored
chore: Merge branch dev to main (#248)
2 parents cbfb9ba + dfc7e15 commit 2c4b88e

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [16.0.0-dev.1](https://github.com/ReVanced/revanced-patcher/compare/v15.0.3...v16.0.0-dev.1) (2023-10-04)
2+
3+
4+
### Bug Fixes
5+
6+
* Use correct super class type ([f590436](https://github.com/ReVanced/revanced-patcher/commit/f590436399f6385c51cea54618251b5d823c31f9))
7+
8+
9+
### BREAKING CHANGES
10+
11+
* This changes the super classes of some `PatchOptionException` classes
12+
113
## [15.0.3](https://github.com/ReVanced/revanced-patcher/compare/v15.0.2...v15.0.3) (2023-10-01)
214

315

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
org.gradle.parallel = true
22
org.gradle.caching = true
33
kotlin.code.style = official
4-
version = 15.0.3
4+
version = 16.0.0-dev.1

revanced-patcher/api/revanced-patcher.api

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,15 +371,15 @@ public final class app/revanced/patcher/patch/options/PatchOptionException$Inval
371371
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
372372
}
373373

374-
public final class app/revanced/patcher/patch/options/PatchOptionException$PatchOptionNotFoundException : java/lang/Exception {
374+
public final class app/revanced/patcher/patch/options/PatchOptionException$PatchOptionNotFoundException : app/revanced/patcher/patch/options/PatchOptionException {
375375
public fun <init> (Ljava/lang/String;)V
376376
}
377377

378-
public final class app/revanced/patcher/patch/options/PatchOptionException$ValueRequiredException : java/lang/Exception {
378+
public final class app/revanced/patcher/patch/options/PatchOptionException$ValueRequiredException : app/revanced/patcher/patch/options/PatchOptionException {
379379
public fun <init> (Lapp/revanced/patcher/patch/options/PatchOption;)V
380380
}
381381

382-
public final class app/revanced/patcher/patch/options/PatchOptionException$ValueValidationException : java/lang/Exception {
382+
public final class app/revanced/patcher/patch/options/PatchOptionException$ValueValidationException : app/revanced/patcher/patch/options/PatchOptionException {
383383
public fun <init> (Ljava/lang/Object;Lapp/revanced/patcher/patch/options/PatchOption;)V
384384
}
385385

revanced-patcher/src/main/kotlin/app/revanced/patcher/patch/options/PatchOptionException.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ sealed class PatchOptionException(errorMessage: String) : Exception(errorMessage
2121
* @param value The value that failed validation.
2222
*/
2323
class ValueValidationException(value: Any?, option: PatchOption<*>) :
24-
Exception("The option value \"$value\" failed validation for ${option.key}")
24+
PatchOptionException("The option value \"$value\" failed validation for ${option.key}")
2525

2626
/**
2727
* An exception thrown when a value is required but null was passed.
2828
*
2929
* @param option The [PatchOption] that requires a value.
3030
*/
3131
class ValueRequiredException(option: PatchOption<*>) :
32-
Exception("The option ${option.key} requires a value, but null was passed")
32+
PatchOptionException("The option ${option.key} requires a value, but null was passed")
3333

3434
/**
3535
* An exception thrown when a [PatchOption] is not found.
3636
*
3737
* @param key The key of the [PatchOption].
3838
*/
3939
class PatchOptionNotFoundException(key: String)
40-
: Exception("No option with key $key")
40+
: PatchOptionException("No option with key $key")
4141
}

0 commit comments

Comments
 (0)