log.debug("MarshalException", e);
throw new MARSHAL(e.toString());
} catch (RemoteException e) {
log.debug("RemoteException", e);
e.printStackTrace();
throw new UnknownException(e);
} catch (RuntimeException e) {
log.debug("RuntimeException", e);
e.printStackTrace();
RemoteException remoteException = new RemoteException(e.getClass().getName() + " thrown from " + ejbDeployment.getDeploymentId() + ": " + e.getMessage());
throw new UnknownException(remoteException);
} catch (Error e) {
log.debug("Error", e);
RemoteException remoteException = new RemoteException(e.getClass().getName() + " thrown from " + ejbDeployment.getDeploymentId() + ": " + e.getMessage());
throw new UnknownException(remoteException);
} catch (Throwable e) {
log.warn("Unexpected throwable", e);
throw new UNKNOWN("Unknown exception type " + e.getClass().getName() + ": " + e.getMessage());
}