From 23959966760174477a6b0fcbf9dd1e8ef37c643b Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sun, 8 Jan 2017 21:16:25 +0100 Subject: Rename project to akka-serial --- sync/src/main/scala/akka/serial/exceptions.scala | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sync/src/main/scala/akka/serial/exceptions.scala (limited to 'sync/src/main/scala/akka/serial/exceptions.scala') 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) -- cgit v1.2.3