docs for exceptions

This commit is contained in:
Adam D. Ruppe 2021-05-08 09:50:42 -04:00
parent 12149ab75d
commit af6533d774
1 changed files with 6 additions and 0 deletions

View File

@ -7225,9 +7225,15 @@ struct ScrollbackBuffer {
} }
/++
Thrown by [LineGetter] if the user pressed ctrl+c while it is processing events.
+/
class UserInterruptionException : Exception { class UserInterruptionException : Exception {
this() { super("Ctrl+C"); } this() { super("Ctrl+C"); }
} }
/++
Thrown by [LineGetter] if the terminal closes while it is processing input.
+/
class HangupException : Exception { class HangupException : Exception {
this() { super("Terminal disconnected"); } this() { super("Terminal disconnected"); }
} }