aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/utils/ErrorUtil.kt5
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)
}