- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.praxislive.internal.osc.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
Fields Modifier and Type Field Description static intBUFFERcauseType : buffer overflow or underflowstatic intFAILEDcauseType : supercollider replies "fail"static intFORMATcauseType : osc message has invalid formatstatic intJAVACLASScauseType : osc message cannot convert given java class to osc primitivestatic intRECEIVEcauseType : network error while receiving osc messagestatic intTIMEOUTcauseType : communication timeoutstatic intTYPETAGcauseType : osc message has invalid or unsupported type tags
-
Constructor Summary
Constructors Constructor Description OSCException(int causeType, String message)Constructs a newOSCExceptionwith the provided type of cause (e.g.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCauseType()Queries the cause of the exceptionStringgetLocalizedMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 newOSCExceptionwith the provided type of cause (e.g.TIMEOUT) and descriptive message.- Parameters:
causeType- cause of the exceptionmessage- human readble description of the exception, may benull
-
-
Method Detail
-
getCauseType
public int getCauseType()
Queries the cause of the exception- Returns:
- cause of the exception, e.g.
BUFFERif a buffer underflow or overflow occured
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
-