siroky/Payola — Issue #11: Unable to use s2js.RPCException in Presenter
Author: teuzz
Created: 2012-02-28 15:00:22+00:00
State: open

def initGraph(): Graph = {
try
{
GraphFetcher.getInitialGraph
}catch {
case s2js.RPCException => {
window.alert("Failed to call RPC.")
null
}
}
}

fails on compile

when import of s2js.runtime.s2js.RPCException used with RPCException in case, got:

[error] found : object s2js.runtime.s2js.RPCException
[error] required: java.lang.Throwable
[error] case RPCException => {

but RPCException is derived from Exception which is extension of Throwable...