aboutsummaryrefslogtreecommitdiff
path: root/sync/src/main/scala/akka/serial/exceptions.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sync/src/main/scala/akka/serial/exceptions.scala')
-rw-r--r--sync/src/main/scala/akka/serial/exceptions.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/sync/src/main/scala/akka/serial/exceptions.scala b/sync/src/main/scala/akka/serial/exceptions.scala
new file mode 100644
index 0000000..26dfceb
--- /dev/null
+++ b/sync/src/main/scala/akka/serial/exceptions.scala
@@ -0,0 +1,19 @@
+package akka.serial
+
+/** 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)