Class PigpioException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.photonvision.common.hardware.GPIO.pi.PigpioException
- All Implemented Interfaces:
Serializable
A class that defines the exceptions that can be thrown by Pigpio.
Credit to nkolban https://github.com/nkolban/jpigpio/blob/master/JPigpio/src/jpigpio/PigpioException.java
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionPigpioException
(int rc) PigpioException
(int rc, String msg) PigpioException
(String arg0) PigpioException
(String arg0, Throwable arg1) PigpioException
(String arg0, Throwable arg1, boolean arg2, boolean arg3) PigpioException
(Throwable arg0) -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieve the error code that was returned by the underlying Pigpio call.static String
getMessageForError
(int errorCode) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
PI_INIT_FAILED
public static final int PI_INIT_FAILED- See Also:
-
PI_BAD_USER_GPIO
public static final int PI_BAD_USER_GPIO- See Also:
-
PI_BAD_GPIO
public static final int PI_BAD_GPIO- See Also:
-
PI_BAD_MODE
public static final int PI_BAD_MODE- See Also:
-
PI_BAD_LEVEL
public static final int PI_BAD_LEVEL- See Also:
-
PI_BAD_PUD
public static final int PI_BAD_PUD- See Also:
-
PI_BAD_PULSEWIDTH
public static final int PI_BAD_PULSEWIDTH- See Also:
-
PI_BAD_DUTYCYCLE
public static final int PI_BAD_DUTYCYCLE- See Also:
-
PI_BAD_TIMER
public static final int PI_BAD_TIMER- See Also:
-
PI_BAD_MS
public static final int PI_BAD_MS- See Also:
-
PI_BAD_TIMETYPE
public static final int PI_BAD_TIMETYPE- See Also:
-
PI_BAD_SECONDS
public static final int PI_BAD_SECONDS- See Also:
-
PI_BAD_MICROS
public static final int PI_BAD_MICROS- See Also:
-
PI_TIMER_FAILED
public static final int PI_TIMER_FAILED- See Also:
-
PI_BAD_WDOG_TIMEOUT
public static final int PI_BAD_WDOG_TIMEOUT- See Also:
-
PI_NO_ALERT_FUNC
public static final int PI_NO_ALERT_FUNC- See Also:
-
PI_BAD_CLK_PERIPH
public static final int PI_BAD_CLK_PERIPH- See Also:
-
PI_BAD_CLK_SOURCE
public static final int PI_BAD_CLK_SOURCE- See Also:
-
PI_BAD_CLK_MICROS
public static final int PI_BAD_CLK_MICROS- See Also:
-
PI_BAD_BUF_MILLIS
public static final int PI_BAD_BUF_MILLIS- See Also:
-
PI_BAD_DUTYRANGE
public static final int PI_BAD_DUTYRANGE- See Also:
-
PI_BAD_DUTY_RANGE
public static final int PI_BAD_DUTY_RANGE- See Also:
-
PI_BAD_SIGNUM
public static final int PI_BAD_SIGNUM- See Also:
-
PI_BAD_PATHNAME
public static final int PI_BAD_PATHNAME- See Also:
-
PI_NO_HANDLE
public static final int PI_NO_HANDLE- See Also:
-
PI_BAD_HANDLE
public static final int PI_BAD_HANDLE- See Also:
-
PI_BAD_IF_FLAGS
public static final int PI_BAD_IF_FLAGS- See Also:
-
PI_BAD_CHANNEL
public static final int PI_BAD_CHANNEL- See Also:
-
PI_BAD_PRIM_CHANNEL
public static final int PI_BAD_PRIM_CHANNEL- See Also:
-
PI_BAD_SOCKET_PORT
public static final int PI_BAD_SOCKET_PORT- See Also:
-
PI_BAD_FIFO_COMMAND
public static final int PI_BAD_FIFO_COMMAND- See Also:
-
PI_BAD_SECO_CHANNEL
public static final int PI_BAD_SECO_CHANNEL- See Also:
-
PI_NOT_INITIALISED
public static final int PI_NOT_INITIALISED- See Also:
-
PI_INITIALISED
public static final int PI_INITIALISED- See Also:
-
PI_BAD_WAVE_MODE
public static final int PI_BAD_WAVE_MODE- See Also:
-
PI_BAD_CFG_INTERNAL
public static final int PI_BAD_CFG_INTERNAL- See Also:
-
PI_BAD_WAVE_BAUD
public static final int PI_BAD_WAVE_BAUD- See Also:
-
PI_TOO_MANY_PULSES
public static final int PI_TOO_MANY_PULSES- See Also:
-
PI_TOO_MANY_CHARS
public static final int PI_TOO_MANY_CHARS- See Also:
-
PI_NOT_SERIAL_GPIO
public static final int PI_NOT_SERIAL_GPIO- See Also:
-
PI_BAD_SERIAL_STRUC
public static final int PI_BAD_SERIAL_STRUC- See Also:
-
PI_BAD_SERIAL_BUF
public static final int PI_BAD_SERIAL_BUF- See Also:
-
PI_NOT_PERMITTED
public static final int PI_NOT_PERMITTED- See Also:
-
PI_SOME_PERMITTED
public static final int PI_SOME_PERMITTED- See Also:
-
PI_BAD_WVSC_COMMND
public static final int PI_BAD_WVSC_COMMND- See Also:
-
PI_BAD_WVSM_COMMND
public static final int PI_BAD_WVSM_COMMND- See Also:
-
PI_BAD_WVSP_COMMND
public static final int PI_BAD_WVSP_COMMND- See Also:
-
PI_BAD_PULSELEN
public static final int PI_BAD_PULSELEN- See Also:
-
PI_BAD_SCRIPT
public static final int PI_BAD_SCRIPT- See Also:
-
PI_BAD_SCRIPT_ID
public static final int PI_BAD_SCRIPT_ID- See Also:
-
PI_BAD_SER_OFFSET
public static final int PI_BAD_SER_OFFSET- See Also:
-
PI_GPIO_IN_USE
public static final int PI_GPIO_IN_USE- See Also:
-
PI_BAD_SERIAL_COUNT
public static final int PI_BAD_SERIAL_COUNT- See Also:
-
PI_BAD_PARAM_NUM
public static final int PI_BAD_PARAM_NUM- See Also:
-
PI_DUP_TAG
public static final int PI_DUP_TAG- See Also:
-
PI_TOO_MANY_TAGS
public static final int PI_TOO_MANY_TAGS- See Also:
-
PI_BAD_SCRIPT_CMD
public static final int PI_BAD_SCRIPT_CMD- See Also:
-
PI_BAD_VAR_NUM
public static final int PI_BAD_VAR_NUM- See Also:
-
PI_NO_SCRIPT_ROOM
public static final int PI_NO_SCRIPT_ROOM- See Also:
-
PI_NO_MEMORY
public static final int PI_NO_MEMORY- See Also:
-
PI_SOCK_READ_FAILED
public static final int PI_SOCK_READ_FAILED- See Also:
-
PI_SOCK_WRIT_FAILED
public static final int PI_SOCK_WRIT_FAILED- See Also:
-
PI_TOO_MANY_PARAM
public static final int PI_TOO_MANY_PARAM- See Also:
-
PI_NOT_HALTED
public static final int PI_NOT_HALTED- See Also:
-
PI_BAD_TAG
public static final int PI_BAD_TAG- See Also:
-
PI_BAD_MICS_DELAY
public static final int PI_BAD_MICS_DELAY- See Also:
-
PI_BAD_MILS_DELAY
public static final int PI_BAD_MILS_DELAY- See Also:
-
PI_BAD_WAVE_ID
public static final int PI_BAD_WAVE_ID- See Also:
-
PI_TOO_MANY_CBS
public static final int PI_TOO_MANY_CBS- See Also:
-
PI_TOO_MANY_OOL
public static final int PI_TOO_MANY_OOL- See Also:
-
PI_EMPTY_WAVEFORM
public static final int PI_EMPTY_WAVEFORM- See Also:
-
PI_NO_WAVEFORM_ID
public static final int PI_NO_WAVEFORM_ID- See Also:
-
PI_I2C_OPEN_FAILED
public static final int PI_I2C_OPEN_FAILED- See Also:
-
PI_SER_OPEN_FAILED
public static final int PI_SER_OPEN_FAILED- See Also:
-
PI_SPI_OPEN_FAILED
public static final int PI_SPI_OPEN_FAILED- See Also:
-
PI_BAD_I2C_BUS
public static final int PI_BAD_I2C_BUS- See Also:
-
PI_BAD_I2C_ADDR
public static final int PI_BAD_I2C_ADDR- See Also:
-
PI_BAD_SPI_CHANNEL
public static final int PI_BAD_SPI_CHANNEL- See Also:
-
PI_BAD_FLAGS
public static final int PI_BAD_FLAGS- See Also:
-
PI_BAD_SPI_SPEED
public static final int PI_BAD_SPI_SPEED- See Also:
-
PI_BAD_SER_DEVICE
public static final int PI_BAD_SER_DEVICE- See Also:
-
PI_BAD_SER_SPEED
public static final int PI_BAD_SER_SPEED- See Also:
-
PI_BAD_PARAM
public static final int PI_BAD_PARAM- See Also:
-
PI_I2C_WRITE_FAILED
public static final int PI_I2C_WRITE_FAILED- See Also:
-
PI_I2C_READ_FAILED
public static final int PI_I2C_READ_FAILED- See Also:
-
PI_BAD_SPI_COUNT
public static final int PI_BAD_SPI_COUNT- See Also:
-
PI_SER_WRITE_FAILED
public static final int PI_SER_WRITE_FAILED- See Also:
-
PI_SER_READ_FAILED
public static final int PI_SER_READ_FAILED- See Also:
-
PI_SER_READ_NO_DATA
public static final int PI_SER_READ_NO_DATA- See Also:
-
PI_UNKNOWN_COMMAND
public static final int PI_UNKNOWN_COMMAND- See Also:
-
PI_SPI_XFER_FAILED
public static final int PI_SPI_XFER_FAILED- See Also:
-
PI_BAD_POINTER
public static final int PI_BAD_POINTER- See Also:
-
PI_NO_AUX_SPI
public static final int PI_NO_AUX_SPI- See Also:
-
PI_NOT_PWM_GPIO
public static final int PI_NOT_PWM_GPIO- See Also:
-
PI_NOT_SERVO_GPIO
public static final int PI_NOT_SERVO_GPIO- See Also:
-
PI_NOT_HCLK_GPIO
public static final int PI_NOT_HCLK_GPIO- See Also:
-
PI_NOT_HPWM_GPIO
public static final int PI_NOT_HPWM_GPIO- See Also:
-
PI_BAD_HPWM_FREQ
public static final int PI_BAD_HPWM_FREQ- See Also:
-
PI_BAD_HPWM_DUTY
public static final int PI_BAD_HPWM_DUTY- See Also:
-
PI_BAD_HCLK_FREQ
public static final int PI_BAD_HCLK_FREQ- See Also:
-
PI_BAD_HCLK_PASS
public static final int PI_BAD_HCLK_PASS- See Also:
-
PI_HPWM_ILLEGAL
public static final int PI_HPWM_ILLEGAL- See Also:
-
PI_BAD_DATABITS
public static final int PI_BAD_DATABITS- See Also:
-
PI_BAD_STOPBITS
public static final int PI_BAD_STOPBITS- See Also:
-
PI_MSG_TOOBIG
public static final int PI_MSG_TOOBIG- See Also:
-
PI_BAD_MALLOC_MODE
public static final int PI_BAD_MALLOC_MODE- See Also:
-
PI_TOO_MANY_SEGS
public static final int PI_TOO_MANY_SEGS- See Also:
-
PI_BAD_I2C_SEG
public static final int PI_BAD_I2C_SEG- See Also:
-
PI_BAD_SMBUS_CMD
public static final int PI_BAD_SMBUS_CMD- See Also:
-
PI_NOT_I2C_GPIO
public static final int PI_NOT_I2C_GPIO- See Also:
-
PI_BAD_I2C_WLEN
public static final int PI_BAD_I2C_WLEN- See Also:
-
PI_BAD_I2C_RLEN
public static final int PI_BAD_I2C_RLEN- See Also:
-
PI_BAD_I2C_CMD
public static final int PI_BAD_I2C_CMD- See Also:
-
PI_BAD_I2C_BAUD
public static final int PI_BAD_I2C_BAUD- See Also:
-
PI_CHAIN_LOOP_CNT
public static final int PI_CHAIN_LOOP_CNT- See Also:
-
PI_BAD_CHAIN_LOOP
public static final int PI_BAD_CHAIN_LOOP- See Also:
-
PI_CHAIN_COUNTER
public static final int PI_CHAIN_COUNTER- See Also:
-
PI_BAD_CHAIN_CMD
public static final int PI_BAD_CHAIN_CMD- See Also:
-
PI_BAD_CHAIN_DELAY
public static final int PI_BAD_CHAIN_DELAY- See Also:
-
PI_CHAIN_NESTING
public static final int PI_CHAIN_NESTING- See Also:
-
PI_CHAIN_TOO_BIG
public static final int PI_CHAIN_TOO_BIG- See Also:
-
PI_DEPRECATED
public static final int PI_DEPRECATED- See Also:
-
PI_BAD_SER_INVERT
public static final int PI_BAD_SER_INVERT- See Also:
-
PI_BAD_EDGE
public static final int PI_BAD_EDGE- See Also:
-
PI_BAD_ISR_INIT
public static final int PI_BAD_ISR_INIT- See Also:
-
PI_BAD_FOREVER
public static final int PI_BAD_FOREVER- See Also:
-
PI_BAD_FILTER
public static final int PI_BAD_FILTER- See Also:
-
PI_PIGIF_ERR_0
public static final int PI_PIGIF_ERR_0- See Also:
-
PI_PIGIF_ERR_99
public static final int PI_PIGIF_ERR_99- See Also:
-
PI_CUSTOM_ERR_0
public static final int PI_CUSTOM_ERR_0- See Also:
-
PI_CUSTOM_ERR_999
public static final int PI_CUSTOM_ERR_999- See Also:
-
-
Constructor Details
-
PigpioException
public PigpioException() -
PigpioException
public PigpioException(int rc) -
PigpioException
-
PigpioException
-
PigpioException
-
PigpioException
-
PigpioException
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getErrorCode
public int getErrorCode()Retrieve the error code that was returned by the underlying Pigpio call.- Returns:
- The error code that was returned by the underlying Pigpio call.
-
getMessageForError
-