/** * 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); } }
private CharsetUtil () throws UnexpectedException { throw new UnexpectedException("It is not allowed to instantiate this class"); } }
private PojoUtil () throws UnexpectedException { throw new UnexpectedException("It is not allowed to instantiate this class"); }
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 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 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 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); } }
public java.lang.String getDefaultDomain(com.sun.jdmk.OperationContext $param_OperationContext_1) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_getDefaultDomain_6, new java.lang.Object[] {$param_OperationContext_1}, 512409007936098290L); 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 java.util.Set queryNames(javax.management.ObjectName $param_ObjectName_1, javax.management.QueryExp $param_QueryExp_2, com.sun.jdmk.OperationContext $param_OperationContext_3) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_queryNames_15, new java.lang.Object[] {$param_ObjectName_1, $param_QueryExp_2, $param_OperationContext_3}, 7107001389539938448L); return ((java.util.Set) $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 java.util.Set queryMBeans(javax.management.ObjectName $param_ObjectName_1, javax.management.QueryExp $param_QueryExp_2) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_queryMBeans_13, new java.lang.Object[] {$param_ObjectName_1, $param_QueryExp_2}, 7847323131051008573L); return ((java.util.Set) $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 remote.Remote map(remote.Function $param_Function_1) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_map_2, new java.lang.Object[] {$param_Function_1}, 2673445164921644157L); return ((remote.Remote) $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 java.lang.String pingHeartBeatServer(java.lang.String $param_String_1, int $param_int_2, int $param_int_3, java.lang.Long $param_Long_4, com.sun.jdmk.OperationContext $param_OperationContext_5) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_pingHeartBeatServer_13, new java.lang.Object[] {$param_String_1, new java.lang.Integer($param_int_2), new java.lang.Integer($param_int_3), $param_Long_4, $param_OperationContext_5}, 436319371904843320L); 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 java.util.Set queryNames(javax.management.ObjectName $param_ObjectName_1, javax.management.QueryExp $param_QueryExp_2) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_queryNames_14, new java.lang.Object[] {$param_ObjectName_1, $param_QueryExp_2}, 985189993453941395L); return ((java.util.Set) $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 java.lang.Object get() throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_get_1, null, -2829067393771514843L); return ((java.lang.Object) $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 java.util.Set queryMBeans(javax.management.ObjectName $param_ObjectName_1, javax.management.QueryExp $param_QueryExp_2, com.sun.jdmk.OperationContext $param_OperationContext_3) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_queryMBeans_14, new java.lang.Object[] {$param_ObjectName_1, $param_QueryExp_2, $param_OperationContext_3}, 3187052459013828740L); return ((java.util.Set) $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 boolean isRegistered(javax.management.ObjectName $param_ObjectName_1) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_isRegistered_11, new java.lang.Object[] {$param_ObjectName_1}, 7945132848729715466L); return ((java.lang.Boolean) $result).booleanValue(); } 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 java.lang.String pingHeartBeatServer(java.lang.String $param_String_1, int $param_int_2, int $param_int_3, java.lang.Long $param_Long_4) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_pingHeartBeatServer_12, new java.lang.Object[] {$param_String_1, new java.lang.Integer($param_int_2), new java.lang.Integer($param_int_3), $param_Long_4}, 2796684047924183521L); 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 remote.Remote flatMap(remote.Function $param_Function_1) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_flatMap_0, new java.lang.Object[] {$param_Function_1}, 7309519053185746205L); return ((remote.Remote) $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 java.lang.Integer getMBeanCount(com.sun.jdmk.OperationContext $param_OperationContext_1) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_getMBeanCount_7, new java.lang.Object[] {$param_OperationContext_1}, -3425292753612071307L); 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); } }
public boolean isRegistered(javax.management.ObjectName $param_ObjectName_1, com.sun.jdmk.OperationContext $param_OperationContext_2) throws java.rmi.RemoteException { try { Object $result = ref.invoke(this, $method_isRegistered_12, new java.lang.Object[] {$param_ObjectName_1, $param_OperationContext_2}, -7609211420371661371L); return ((java.lang.Boolean) $result).booleanValue(); } 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); } }