aboutsummaryrefslogtreecommitdiff
path: root/flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2013-07-19 20:44:59 +0200
committerJakob Odersky <jodersky@gmail.com>2013-07-19 20:44:59 +0200
commit09eb7f7803e6935ea6e8f694d17fa1c245eda39d (patch)
tree38a8caea46822985c7d574e0e6bad3e51ecc0bf2 /flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala
parent3356df969fbfdd80c3e6e8fd7390c93f630f590f (diff)
downloadakka-serial-09eb7f7803e6935ea6e8f694d17fa1c245eda39d.tar.gz
akka-serial-09eb7f7803e6935ea6e8f694d17fa1c245eda39d.tar.bz2
akka-serial-09eb7f7803e6935ea6e8f694d17fa1c245eda39d.zip
add some documentation
Diffstat (limited to 'flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala')
-rw-r--r--flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala b/flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala
index f91aa1b..5923ba6 100644
--- a/flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala
+++ b/flow-main/src/main/scala/com/github/jodersky/flow/exceptions.scala
@@ -2,9 +2,20 @@ package com.github.jodersky.flow
import java.io.IOException
+/** The requested port could not be found. */
class NoSuchPortException(message: String) extends Exception(message)
+
+/** The requested port is in use by someone else. */
class PortInUseException(message: String) extends Exception(message)
+
+/** Permissions are not sufficient to open a serial port. */
class AccessDeniedException(message: String) extends Exception(message)
+
+/** The settings specified are invalid. */
class InvalidSettingsException(message: String) extends Exception(message)
+
+/** A blocking operation on a port was interrupted, most likely indicating that the port is closing. */
class PortInterruptedException(message: String) extends Exception(message)
+
+/** The specified port has been closed. */
class PortClosedException(message: String) extends Exception(message) \ No newline at end of file