Package com.pi4j.io.serial
Class SerialPortException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.pi4j.io.serial.SerialPortException
-
- All Implemented Interfaces:
Serializable
public class SerialPortException extends RuntimeException
This class represents Exception that might occur in Serial interface.
Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries:
- pi4j
- wiringPi
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
- Author:
- Jakub Derda (http://www.ardeo.pl)
- See Also:
Serial
, https://pi4j.com/, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerialPortException()
Default no argument constructor.SerialPortException(String message)
Constructor with description.SerialPortException(Throwable cause)
Constructor with cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SerialPortException
public SerialPortException()
Default no argument constructor.
-
SerialPortException
public SerialPortException(String message)
Constructor with description.- Parameters:
message
- Description of error that occured.
-
SerialPortException
public SerialPortException(Throwable cause)
Constructor with cause.- Parameters:
cause
- Cause of SerialException.
-
-