feat: Use an extension property to create new exception when failing to resolve a fingerprint

This commit adds the extension property to the public API
This commit is contained in:
oSumAtrIX
2023-08-25 00:02:16 +02:00
parent d975eeafb7
commit 47eac14f03
91 changed files with 259 additions and 247 deletions

View File

@ -1,6 +1,6 @@
package app.revanced.patches.candylinkvpn.patch
import app.revanced.extensions.toErrorResult
import app.revanced.extensions.exception
import app.revanced.patcher.annotation.Description
import app.revanced.patcher.annotation.Name
import app.revanced.patcher.data.BytecodeContext
@ -24,6 +24,6 @@ class UnlockProPatch : BytecodePatch(
const/4 v0, 0x1
return v0
"""
) ?: throw IsPremiumPurchasedFingerprint.toErrorResult()
) ?: throw IsPremiumPurchasedFingerprint.exception
}
}