Modifier and Type | Method and Description |
---|---|
void |
MiniPython.Client.onError(MiniPython.ExecutionError error)
Called whenever there is an ExecutionError.
|
Modifier and Type | Method and Description |
---|---|
Object |
MiniPython.callMethod(String name,
Object... args)
Calls a method in Python and returns the result
|
void |
MiniPython.Client.print(String s)
Request to print a string
|
void |
MiniPython.setCode(InputStream stream)
Reads and executes code from the supplied stream
The stream provided must satisfy reads completely (eg if 27 bytes is
asked for then that number should be returned in the read() call unless
end of file is reached.)
|
void |
MiniPython.signalError(String exctype,
String message)
Call this method when your callbacks need to halt execution due to an
error
This method will do the internal bookkeeping necessary in order to
provide diagnostics to the original caller and then throw an
ExecutionError which you should not catch.
|
void |
MiniPython.signalError(String exctype,
String message,
Throwable cause)
Call this method when your callbacks need to halt execution due to an
error
This method will do the internal bookkeeping necessary in order to
provide diagnostics to the original caller and then throw an
ExecutionError which you should not catch.
|