Refine search
/** * Unmarshals from an input stream an exception thrown by the method. * * @param id the repository id of the exception to unmarshal * @param in a CDR input stream * @return an exception unmarshaled from the stream. */ public Exception readException(String id, InputStream in) { ExceptionReader exceptionReader = (ExceptionReader) exceptionMap.get(id); if (exceptionReader == null) { return new UnexpectedException(id); } else { return exceptionReader.read(in); } }
public Transporter getLogin() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return getLogin(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public Exception readException( ApplicationException ae ) { // Note that the exception ID is present in both ae // and in the input stream from ae. The exception // reader must actually read the exception ID from // the stream. InputStream is = (InputStream)ae.getInputStream() ; String excName = ae.getId() ; int index = findDeclaredException( excName ) ; if (index < 0) { excName = is.read_string() ; Exception res = new UnexpectedException( excName ) ; res.initCause( ae ) ; return res ; } return rws[index].read( is ) ; }
public Transporter commitTransaction() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return commitTransaction(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public Exception readException(ApplicationException ae) { // Note that the exception ID is present in both ae // and in the input stream from ae. The exception // reader must actually read the exception ID from // the stream. InputStream is = (InputStream) ae.getInputStream(); String excName = ae.getId(); int index = findDeclaredException(excName); if (index < 0) { excName = is.read_string(); Exception res = new UnexpectedException(excName); res.initCause(ae); return res; } return rws[index].read(is); }
public Transporter initializeIdentityMapsOnServerSession() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return initializeIdentityMapsOnServerSession(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
private CharsetUtil () throws UnexpectedException { throw new UnexpectedException("It is not allowed to instantiate this class"); } }
public Exception readException(ApplicationException ae) { // Note that the exception ID is present in both ae // and in the input stream from ae. The exception // reader must actually read the exception ID from // the stream. InputStream is = (InputStream) ae.getInputStream(); String excName = ae.getId(); int index = findDeclaredException(excName); if (index < 0) { excName = is.read_string(); Exception res = new UnexpectedException(excName); res.initCause(ae); return res; } return rws[index].read(is); }
public Transporter beginEarlyTransaction() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return beginTransaction(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
private PojoUtil () throws UnexpectedException { throw new UnexpectedException("It is not allowed to instantiate this class"); }
public Transporter getDefaultReadOnlyClasses() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return getLogin(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
switch(pos) { case 0: //acre - redo calculation break; case 1: //hectare - redo calculation break; case 2: //squareinch - redo calculation break; //... default: throw new UnexpectedException(); } //display results to user
public Transporter beginTransaction() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return beginTransaction(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public int numNgrams(Markable m) throws UnexpectedException{ if(m instanceof NEMarkable){ return featSet.size(); }else if(m instanceof PronounMarkable){ return pronFeatSet.size(); }else if(m instanceof DemMarkable){ return demFeatSet.size(); }else{ throw new UnexpectedException("The type passed into numNgrams was not expected!"); } }
public Transporter commitTransaction() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return commitTransaction(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public int numNgrams(Markable m) throws UnexpectedException{ if(m instanceof NEMarkable){ return featSet.size(); }else if(m instanceof PronounMarkable){ return pronFeatSet.size(); }else if(m instanceof DemMarkable){ return demFeatSet.size(); }else{ throw new UnexpectedException("The type passed into numNgrams was not expected!"); } }
public Transporter initializeIdentityMapsOnServerSession() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return initializeIdentityMapsOnServerSession(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public java.lang.String getDefaultDomain() throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_getDefaultDomain_6, null, -8353033044113668180L); return ((java.lang.String) $result); } catch (java.lang.RuntimeException e) { throw e; } catch (java.rmi.RemoteException e) { throw e; } catch (java.lang.Exception e) { throw new java.rmi.UnexpectedException("undeclared checked exception", e); } }
public Transporter rollbackTransaction() throws RemoteException { if (!Util.isLocal(this)) { try { org.omg.CORBA_2_3.portable.InputStream in = null; return readTransporter(in); } catch (ApplicationException ex) { in = (org.omg.CORBA_2_3.portable.InputStream)ex.getInputStream(); String id = in.read_string(); throw new UnexpectedException(id); } catch (RemarshalException ex) { return rollbackTransaction(); throw Util.mapSystemException(ex); return (Transporter)Util.copyObject(result, _orb()); } catch (Throwable ex) { Throwable exCopy = (Throwable)Util.copyObject(ex, _orb());
public java.lang.Integer getMBeanCount() throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_getMBeanCount_7, null, 3242680704292914065L); return ((java.lang.Integer) $result); } catch (java.lang.RuntimeException e) { throw e; } catch (java.rmi.RemoteException e) { throw e; } catch (java.lang.Exception e) { throw new java.rmi.UnexpectedException("undeclared checked exception", e); } }