From 4bbfede4060d38083aafd8a6c7ab2847e0e55ebf Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 21 Aug 2023 16:15:59 +0200 Subject: method binding --- src/ErrorReporter.kt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/ErrorReporter.kt (limited to 'src/ErrorReporter.kt') 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 -- cgit