diff src/main/kotlin/name/blackcap/passman/MessagedException.kt @ 21:ea65ab890f66

More work to support interactive feature.
author David Barts <n5jrn@me.com>
date Tue, 02 Jul 2024 11:27:39 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/main/kotlin/name/blackcap/passman/MessagedException.kt	Tue Jul 02 11:27:39 2024 -0700
@@ -0,0 +1,6 @@
+package name.blackcap.passman
+
+// Exception that always has a non-null message.
+open class MessagedException(_message: String, _cause: Throwable? = null) : Exception(_message, _cause) {
+    override val message = _message
+}