Class OSCException

  • All Implemented Interfaces:
    Serializable

    public class OSCException
    extends IOException
    Exception thrown by some OSC related methods. Typical reasons are communication timeout and buffer underflows or overflows.
    Version:
    0.10, 26-May-05
    Author:
    Hanns Holger Rutz
    See Also:
    Serialized Form
    • Field Detail

      • TIMEOUT

        public static final int TIMEOUT
        causeType : communication timeout
        See Also:
        Constant Field Values
      • FAILED

        public static final int FAILED
        causeType : supercollider replies "fail"
        See Also:
        Constant Field Values
      • BUFFER

        public static final int BUFFER
        causeType : buffer overflow or underflow
        See Also:
        Constant Field Values
      • FORMAT

        public static final int FORMAT
        causeType : osc message has invalid format
        See Also:
        Constant Field Values
      • TYPETAG

        public static final int TYPETAG
        causeType : osc message has invalid or unsupported type tags
        See Also:
        Constant Field Values
      • JAVACLASS

        public static final int JAVACLASS
        causeType : osc message cannot convert given java class to osc primitive
        See Also:
        Constant Field Values
      • RECEIVE

        public static final int RECEIVE
        causeType : network error while receiving osc message
        See Also:
        Constant Field Values
    • Constructor Detail

      • OSCException

        public OSCException​(int causeType,
                            String message)
        Constructs a new OSCException with the provided type of cause (e.g. TIMEOUT) and descriptive message.
        Parameters:
        causeType - cause of the exception
        message - human readble description of the exception, may be null
    • Method Detail

      • getCauseType

        public int getCauseType()
        Queries the cause of the exception
        Returns:
        cause of the exception, e.g. BUFFER if a buffer underflow or overflow occured