de.sciss.net
Class OSCException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by de.sciss.net.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 Summary
static int BUFFER
          causeType : buffer overflow or underflow
static int FAILED
          causeType : supercollider replies "fail"
static int FORMAT
          causeType : osc message has invalid format
static int JAVACLASS
          causeType : osc message cannot convert given java class to osc primitive
static int RECEIVE
          causeType : network error while receiving osc message
static int TIMEOUT
          causeType : communication timeout
static int TYPETAG
          causeType : osc message has invalid or unsupported type tags
 
Constructor Summary
OSCException(int causeType, String message)
          Constructs a new OSCException with the provided type of cause (e.g.
 
Method Summary
 int getCauseType()
          Queries the cause of the exception
 String getLocalizedMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable