Mercurial > cgi-bin > hgweb.cgi > PassMan
annotate src/main/kotlin/name/blackcap/passman/MessagedException.kt @ 28:287eadf5ab30 default tip
Check for timeouts inside subcommands while in interactive mode as well.
author | David Barts <n5jrn@me.com> |
---|---|
date | Wed, 31 Jul 2024 11:21:18 -0700 |
parents | ea65ab890f66 |
children |
rev | line source |
---|---|
21
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
1 package name.blackcap.passman |
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
2 |
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
3 // Exception that always has a non-null message. |
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
4 open class MessagedException(_message: String, _cause: Throwable? = null) : Exception(_message, _cause) { |
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
5 override val message = _message |
ea65ab890f66
More work to support interactive feature.
David Barts <n5jrn@me.com>
parents:
diff
changeset
|
6 } |