|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException de.sciss.net.OSCException
public class OSCException
Exception thrown by some OSC related methods. Typical reasons are communication timeout and buffer underflows or overflows.
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 |
---|
public static final int TIMEOUT
public static final int FAILED
public static final int BUFFER
public static final int FORMAT
public static final int TYPETAG
public static final int JAVACLASS
public static final int RECEIVE
Constructor Detail |
---|
public OSCException(int causeType, String message)
OSCException
with
the provided type of cause (e.g. TIMEOUT
)
and descriptive message.
causeType
- cause of the exceptionmessage
- human readble description of the exception,
may be null
Method Detail |
---|
public int getCauseType()
BUFFER
if a buffer underflow or overflow occuredpublic String getLocalizedMessage()
getLocalizedMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |