diff options
author | Linnea Gräf <nea@nea.moe> | 2024-12-17 23:07:06 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-12-17 23:07:06 +0100 |
commit | a046b198645811fe1b7db129942505c379aabb03 (patch) | |
tree | d97e68b1cf3a272aec5d8dd863b82fb0c9b0dc82 /src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt | |
parent | a2f73de90fb9c9d0ea7a5e7e9e6b9e445a8094ee (diff) | |
download | LocalTransactionLedger-a046b198645811fe1b7db129942505c379aabb03.tar.gz LocalTransactionLedger-a046b198645811fe1b7db129942505c379aabb03.tar.bz2 LocalTransactionLedger-a046b198645811fe1b7db129942505c379aabb03.zip |
feat: Add name prefetching
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt b/src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt index 4ba313e..344c8bc 100644 --- a/src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt +++ b/src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt @@ -10,6 +10,11 @@ class ErrorUtil { @Inject lateinit var reporter: EventRecorder + fun reportAdHoc(message: String) { + report(Exception(message), message) + + } + fun report(exception: Throwable, message: String?) { Span.current().recordException(reporter, exception, message) } |