aboutsummaryrefslogtreecommitdiff
path: root/flow-core/src/main/scala/com/github/jodersky/flow/exceptions.scala
blob: ebc0e65e77136cc574db2de0f850ef6eec82d972 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.github.jodersky.flow

/** 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)