summaryrefslogtreecommitdiff
path: root/src/ErrorReporter.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-21 16:15:59 +0200
committernea <nea@nea.moe>2023-08-21 16:15:59 +0200
commit4bbfede4060d38083aafd8a6c7ab2847e0e55ebf (patch)
treef0ab50180d2fa1c872ba8c20a4b055cd87bed3c9 /src/ErrorReporter.kt
parentde694f30b5e2f6fd62a00e5a622abe0a2411afb9 (diff)
downloadnealisp-4bbfede4060d38083aafd8a6c7ab2847e0e55ebf.tar.gz
nealisp-4bbfede4060d38083aafd8a6c7ab2847e0e55ebf.tar.bz2
nealisp-4bbfede4060d38083aafd8a6c7ab2847e0e55ebf.zip
method binding
Diffstat (limited to 'src/ErrorReporter.kt')
-rw-r--r--src/ErrorReporter.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ErrorReporter.kt b/src/ErrorReporter.kt
new file mode 100644
index 0000000..b4ba636
--- /dev/null
+++ b/src/ErrorReporter.kt
@@ -0,0 +1,8 @@
+package moe.nea.lisp
+
+interface ErrorReporter {
+ fun reportError(string: String): LispData
+ fun reportError(string: String, exception: Throwable): LispData {
+ return reportError("$string: $exception")
+ }
+} \ No newline at end of file