Package jpigpio
Class PigpioException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jpigpio.PigpioException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BadValueException
,NotImplementedException
,WrongModeException
public class PigpioException
extends java.lang.Exception
A clas sthat defines the exceptions that can be thrown by Pigpio.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PigpioException()
PigpioException(int rc)
PigpioException(int rc, java.lang.String msg)
PigpioException(java.lang.String arg0)
PigpioException(java.lang.String arg0, java.lang.Throwable arg1)
PigpioException(java.lang.String arg0, java.lang.Throwable arg1, boolean arg2, boolean arg3)
PigpioException(java.lang.Throwable arg0)
-
Method Summary
Modifier and Type Method Description int
getErrorCode()
Retrieve the error code that was returned by the underlying Pigpio call.java.lang.String
getMessage()
-
Field Details
-
PI_INIT_FAILED
public static final int PI_INIT_FAILED- See Also:
- Constant Field Values
-
PI_BAD_USER_GPIO
public static final int PI_BAD_USER_GPIO- See Also:
- Constant Field Values
-
PI_BAD_GPIO
public static final int PI_BAD_GPIO- See Also:
- Constant Field Values
-
PI_BAD_MODE
public static final int PI_BAD_MODE- See Also:
- Constant Field Values
-
PI_BAD_LEVEL
public static final int PI_BAD_LEVEL- See Also:
- Constant Field Values
-
PI_BAD_PUD
public static final int PI_BAD_PUD- See Also:
- Constant Field Values
-
PI_BAD_PULSEWIDTH
public static final int PI_BAD_PULSEWIDTH- See Also:
- Constant Field Values
-
PI_BAD_DUTYCYCLE
public static final int PI_BAD_DUTYCYCLE- See Also:
- Constant Field Values
-
PI_BAD_TIMER
public static final int PI_BAD_TIMER- See Also:
- Constant Field Values
-
PI_BAD_MS
public static final int PI_BAD_MS- See Also:
- Constant Field Values
-
PI_BAD_TIMETYPE
public static final int PI_BAD_TIMETYPE- See Also:
- Constant Field Values
-
PI_BAD_SECONDS
public static final int PI_BAD_SECONDS- See Also:
- Constant Field Values
-
PI_BAD_MICROS
public static final int PI_BAD_MICROS- See Also:
- Constant Field Values
-
PI_TIMER_FAILED
public static final int PI_TIMER_FAILED- See Also:
- Constant Field Values
-
PI_BAD_WDOG_TIMEOUT
public static final int PI_BAD_WDOG_TIMEOUT- See Also:
- Constant Field Values
-
PI_NO_ALERT_FUNC
public static final int PI_NO_ALERT_FUNC- See Also:
- Constant Field Values
-
PI_BAD_CLK_PERIPH
public static final int PI_BAD_CLK_PERIPH- See Also:
- Constant Field Values
-
PI_BAD_CLK_SOURCE
public static final int PI_BAD_CLK_SOURCE- See Also:
- Constant Field Values
-
PI_BAD_CLK_MICROS
public static final int PI_BAD_CLK_MICROS- See Also:
- Constant Field Values
-
PI_BAD_BUF_MILLIS
public static final int PI_BAD_BUF_MILLIS- See Also:
- Constant Field Values
-
PI_BAD_DUTYRANGE
public static final int PI_BAD_DUTYRANGE- See Also:
- Constant Field Values
-
PI_BAD_DUTY_RANGE
public static final int PI_BAD_DUTY_RANGE- See Also:
- Constant Field Values
-
PI_BAD_SIGNUM
public static final int PI_BAD_SIGNUM- See Also:
- Constant Field Values
-
PI_BAD_PATHNAME
public static final int PI_BAD_PATHNAME- See Also:
- Constant Field Values
-
PI_NO_HANDLE
public static final int PI_NO_HANDLE- See Also:
- Constant Field Values
-
PI_BAD_HANDLE
public static final int PI_BAD_HANDLE- See Also:
- Constant Field Values
-
PI_BAD_IF_FLAGS
public static final int PI_BAD_IF_FLAGS- See Also:
- Constant Field Values
-
PI_BAD_CHANNEL
public static final int PI_BAD_CHANNEL- See Also:
- Constant Field Values
-
PI_BAD_PRIM_CHANNEL
public static final int PI_BAD_PRIM_CHANNEL- See Also:
- Constant Field Values
-
PI_BAD_SOCKET_PORT
public static final int PI_BAD_SOCKET_PORT- See Also:
- Constant Field Values
-
PI_BAD_FIFO_COMMAND
public static final int PI_BAD_FIFO_COMMAND- See Also:
- Constant Field Values
-
PI_BAD_SECO_CHANNEL
public static final int PI_BAD_SECO_CHANNEL- See Also:
- Constant Field Values
-
PI_NOT_INITIALISED
public static final int PI_NOT_INITIALISED- See Also:
- Constant Field Values
-
PI_INITIALISED
public static final int PI_INITIALISED- See Also:
- Constant Field Values
-
PI_BAD_WAVE_MODE
public static final int PI_BAD_WAVE_MODE- See Also:
- Constant Field Values
-
PI_BAD_CFG_INTERNAL
public static final int PI_BAD_CFG_INTERNAL- See Also:
- Constant Field Values
-
PI_BAD_WAVE_BAUD
public static final int PI_BAD_WAVE_BAUD- See Also:
- Constant Field Values
-
PI_TOO_MANY_PULSES
public static final int PI_TOO_MANY_PULSES- See Also:
- Constant Field Values
-
PI_TOO_MANY_CHARS
public static final int PI_TOO_MANY_CHARS- See Also:
- Constant Field Values
-
PI_NOT_SERIAL_GPIO
public static final int PI_NOT_SERIAL_GPIO- See Also:
- Constant Field Values
-
PI_BAD_SERIAL_STRUC
public static final int PI_BAD_SERIAL_STRUC- See Also:
- Constant Field Values
-
PI_BAD_SERIAL_BUF
public static final int PI_BAD_SERIAL_BUF- See Also:
- Constant Field Values
-
PI_NOT_PERMITTED
public static final int PI_NOT_PERMITTED- See Also:
- Constant Field Values
-
PI_SOME_PERMITTED
public static final int PI_SOME_PERMITTED- See Also:
- Constant Field Values
-
PI_BAD_WVSC_COMMND
public static final int PI_BAD_WVSC_COMMND- See Also:
- Constant Field Values
-
PI_BAD_WVSM_COMMND
public static final int PI_BAD_WVSM_COMMND- See Also:
- Constant Field Values
-
PI_BAD_WVSP_COMMND
public static final int PI_BAD_WVSP_COMMND- See Also:
- Constant Field Values
-
PI_BAD_PULSELEN
public static final int PI_BAD_PULSELEN- See Also:
- Constant Field Values
-
PI_BAD_SCRIPT
public static final int PI_BAD_SCRIPT- See Also:
- Constant Field Values
-
PI_BAD_SCRIPT_ID
public static final int PI_BAD_SCRIPT_ID- See Also:
- Constant Field Values
-
PI_BAD_SER_OFFSET
public static final int PI_BAD_SER_OFFSET- See Also:
- Constant Field Values
-
PI_GPIO_IN_USE
public static final int PI_GPIO_IN_USE- See Also:
- Constant Field Values
-
PI_BAD_SERIAL_COUNT
public static final int PI_BAD_SERIAL_COUNT- See Also:
- Constant Field Values
-
PI_BAD_PARAM_NUM
public static final int PI_BAD_PARAM_NUM- See Also:
- Constant Field Values
-
PI_DUP_TAG
public static final int PI_DUP_TAG- See Also:
- Constant Field Values
-
PI_TOO_MANY_TAGS
public static final int PI_TOO_MANY_TAGS- See Also:
- Constant Field Values
-
PI_BAD_SCRIPT_CMD
public static final int PI_BAD_SCRIPT_CMD- See Also:
- Constant Field Values
-
PI_BAD_VAR_NUM
public static final int PI_BAD_VAR_NUM- See Also:
- Constant Field Values
-
PI_NO_SCRIPT_ROOM
public static final int PI_NO_SCRIPT_ROOM- See Also:
- Constant Field Values
-
PI_NO_MEMORY
public static final int PI_NO_MEMORY- See Also:
- Constant Field Values
-
PI_SOCK_READ_FAILED
public static final int PI_SOCK_READ_FAILED- See Also:
- Constant Field Values
-
PI_SOCK_WRIT_FAILED
public static final int PI_SOCK_WRIT_FAILED- See Also:
- Constant Field Values
-
PI_TOO_MANY_PARAM
public static final int PI_TOO_MANY_PARAM- See Also:
- Constant Field Values
-
PI_NOT_HALTED
public static final int PI_NOT_HALTED- See Also:
- Constant Field Values
-
PI_BAD_TAG
public static final int PI_BAD_TAG- See Also:
- Constant Field Values
-
PI_BAD_MICS_DELAY
public static final int PI_BAD_MICS_DELAY- See Also:
- Constant Field Values
-
PI_BAD_MILS_DELAY
public static final int PI_BAD_MILS_DELAY- See Also:
- Constant Field Values
-
PI_BAD_WAVE_ID
public static final int PI_BAD_WAVE_ID- See Also:
- Constant Field Values
-
PI_TOO_MANY_CBS
public static final int PI_TOO_MANY_CBS- See Also:
- Constant Field Values
-
PI_TOO_MANY_OOL
public static final int PI_TOO_MANY_OOL- See Also:
- Constant Field Values
-
PI_EMPTY_WAVEFORM
public static final int PI_EMPTY_WAVEFORM- See Also:
- Constant Field Values
-
PI_NO_WAVEFORM_ID
public static final int PI_NO_WAVEFORM_ID- See Also:
- Constant Field Values
-
PI_I2C_OPEN_FAILED
public static final int PI_I2C_OPEN_FAILED- See Also:
- Constant Field Values
-
PI_SER_OPEN_FAILED
public static final int PI_SER_OPEN_FAILED- See Also:
- Constant Field Values
-
PI_SPI_OPEN_FAILED
public static final int PI_SPI_OPEN_FAILED- See Also:
- Constant Field Values
-
PI_BAD_I2C_BUS
public static final int PI_BAD_I2C_BUS- See Also:
- Constant Field Values
-
PI_BAD_I2C_ADDR
public static final int PI_BAD_I2C_ADDR- See Also:
- Constant Field Values
-
PI_BAD_SPI_CHANNEL
public static final int PI_BAD_SPI_CHANNEL- See Also:
- Constant Field Values
-
PI_BAD_FLAGS
public static final int PI_BAD_FLAGS- See Also:
- Constant Field Values
-
PI_BAD_SPI_SPEED
public static final int PI_BAD_SPI_SPEED- See Also:
- Constant Field Values
-
PI_BAD_SER_DEVICE
public static final int PI_BAD_SER_DEVICE- See Also:
- Constant Field Values
-
PI_BAD_SER_SPEED
public static final int PI_BAD_SER_SPEED- See Also:
- Constant Field Values
-
PI_BAD_PARAM
public static final int PI_BAD_PARAM- See Also:
- Constant Field Values
-
PI_I2C_WRITE_FAILED
public static final int PI_I2C_WRITE_FAILED- See Also:
- Constant Field Values
-
PI_I2C_READ_FAILED
public static final int PI_I2C_READ_FAILED- See Also:
- Constant Field Values
-
PI_BAD_SPI_COUNT
public static final int PI_BAD_SPI_COUNT- See Also:
- Constant Field Values
-
PI_SER_WRITE_FAILED
public static final int PI_SER_WRITE_FAILED- See Also:
- Constant Field Values
-
PI_SER_READ_FAILED
public static final int PI_SER_READ_FAILED- See Also:
- Constant Field Values
-
PI_SER_READ_NO_DATA
public static final int PI_SER_READ_NO_DATA- See Also:
- Constant Field Values
-
PI_UNKNOWN_COMMAND
public static final int PI_UNKNOWN_COMMAND- See Also:
- Constant Field Values
-
PI_SPI_XFER_FAILED
public static final int PI_SPI_XFER_FAILED- See Also:
- Constant Field Values
-
PI_BAD_POINTER
public static final int PI_BAD_POINTER- See Also:
- Constant Field Values
-
PI_NO_AUX_SPI
public static final int PI_NO_AUX_SPI- See Also:
- Constant Field Values
-
PI_NOT_PWM_GPIO
public static final int PI_NOT_PWM_GPIO- See Also:
- Constant Field Values
-
PI_NOT_SERVO_GPIO
public static final int PI_NOT_SERVO_GPIO- See Also:
- Constant Field Values
-
PI_NOT_HCLK_GPIO
public static final int PI_NOT_HCLK_GPIO- See Also:
- Constant Field Values
-
PI_NOT_HPWM_GPIO
public static final int PI_NOT_HPWM_GPIO- See Also:
- Constant Field Values
-
PI_BAD_HPWM_FREQ
public static final int PI_BAD_HPWM_FREQ- See Also:
- Constant Field Values
-
PI_BAD_HPWM_DUTY
public static final int PI_BAD_HPWM_DUTY- See Also:
- Constant Field Values
-
PI_BAD_HCLK_FREQ
public static final int PI_BAD_HCLK_FREQ- See Also:
- Constant Field Values
-
PI_BAD_HCLK_PASS
public static final int PI_BAD_HCLK_PASS- See Also:
- Constant Field Values
-
PI_HPWM_ILLEGAL
public static final int PI_HPWM_ILLEGAL- See Also:
- Constant Field Values
-
PI_BAD_DATABITS
public static final int PI_BAD_DATABITS- See Also:
- Constant Field Values
-
PI_BAD_STOPBITS
public static final int PI_BAD_STOPBITS- See Also:
- Constant Field Values
-
PI_MSG_TOOBIG
public static final int PI_MSG_TOOBIG- See Also:
- Constant Field Values
-
PI_BAD_MALLOC_MODE
public static final int PI_BAD_MALLOC_MODE- See Also:
- Constant Field Values
-
PI_TOO_MANY_SEGS
public static final int PI_TOO_MANY_SEGS- See Also:
- Constant Field Values
-
PI_BAD_I2C_SEG
public static final int PI_BAD_I2C_SEG- See Also:
- Constant Field Values
-
PI_BAD_SMBUS_CMD
public static final int PI_BAD_SMBUS_CMD- See Also:
- Constant Field Values
-
PI_NOT_I2C_GPIO
public static final int PI_NOT_I2C_GPIO- See Also:
- Constant Field Values
-
PI_BAD_I2C_WLEN
public static final int PI_BAD_I2C_WLEN- See Also:
- Constant Field Values
-
PI_BAD_I2C_RLEN
public static final int PI_BAD_I2C_RLEN- See Also:
- Constant Field Values
-
PI_BAD_I2C_CMD
public static final int PI_BAD_I2C_CMD- See Also:
- Constant Field Values
-
PI_BAD_I2C_BAUD
public static final int PI_BAD_I2C_BAUD- See Also:
- Constant Field Values
-
PI_CHAIN_LOOP_CNT
public static final int PI_CHAIN_LOOP_CNT- See Also:
- Constant Field Values
-
PI_BAD_CHAIN_LOOP
public static final int PI_BAD_CHAIN_LOOP- See Also:
- Constant Field Values
-
PI_CHAIN_COUNTER
public static final int PI_CHAIN_COUNTER- See Also:
- Constant Field Values
-
PI_BAD_CHAIN_CMD
public static final int PI_BAD_CHAIN_CMD- See Also:
- Constant Field Values
-
PI_BAD_CHAIN_DELAY
public static final int PI_BAD_CHAIN_DELAY- See Also:
- Constant Field Values
-
PI_CHAIN_NESTING
public static final int PI_CHAIN_NESTING- See Also:
- Constant Field Values
-
PI_CHAIN_TOO_BIG
public static final int PI_CHAIN_TOO_BIG- See Also:
- Constant Field Values
-
PI_DEPRECATED
public static final int PI_DEPRECATED- See Also:
- Constant Field Values
-
PI_BAD_SER_INVERT
public static final int PI_BAD_SER_INVERT- See Also:
- Constant Field Values
-
PI_BAD_EDGE
public static final int PI_BAD_EDGE- See Also:
- Constant Field Values
-
PI_BAD_ISR_INIT
public static final int PI_BAD_ISR_INIT- See Also:
- Constant Field Values
-
PI_BAD_FOREVER
public static final int PI_BAD_FOREVER- See Also:
- Constant Field Values
-
PI_BAD_FILTER
public static final int PI_BAD_FILTER- See Also:
- Constant Field Values
-
PI_PIGIF_ERR_0
public static final int PI_PIGIF_ERR_0- See Also:
- Constant Field Values
-
PI_PIGIF_ERR_99
public static final int PI_PIGIF_ERR_99- See Also:
- Constant Field Values
-
PI_CUSTOM_ERR_0
public static final int PI_CUSTOM_ERR_0- See Also:
- Constant Field Values
-
PI_CUSTOM_ERR_999
public static final int PI_CUSTOM_ERR_999- See Also:
- Constant Field Values
-
-
Constructor Details
-
PigpioException
public PigpioException() -
PigpioException
public PigpioException(int rc) -
PigpioException
public PigpioException(int rc, java.lang.String msg) -
PigpioException
public PigpioException(java.lang.String arg0, java.lang.Throwable arg1, boolean arg2, boolean arg3) -
PigpioException
public PigpioException(java.lang.String arg0, java.lang.Throwable arg1) -
PigpioException
public PigpioException(java.lang.String arg0) -
PigpioException
public PigpioException(java.lang.Throwable arg0)
-
-
Method Details
-
getMessage
public java.lang.String getMessage()- Overrides:
getMessage
in classjava.lang.Throwable
-
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.
-