fix: use Exception instead of MethodNotFoundException

This commit is contained in:
oSumAtrIX 2022-06-26 17:59:01 +02:00
parent f565c4f6a7
commit 2fc4ec4021
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -2,7 +2,6 @@ package app.revanced.patcher.fingerprint.method.impl
import app.revanced.patcher.data.impl.BytecodeData
import app.revanced.patcher.data.impl.MethodNotFoundException
import app.revanced.patcher.data.impl.proxy
import app.revanced.patcher.extensions.MethodFingerprintExtensions.name
import app.revanced.patcher.extensions.softCompareTo
import app.revanced.patcher.fingerprint.Fingerprint
@ -35,7 +34,7 @@ abstract class MethodFingerprint(
* @throws MethodNotFoundException If the resolution of the [Method] has not happened.
*/
var result: MethodFingerprintResult? = null
get() = field ?: throw MethodNotFoundException("${this.name} has not been resolved yet.")
get() = field ?: throw Exception("${this.name} has not been resolved yet.")
}
/**