@Override final protected JsonValue execGetItem(HttpAction action) { throw new InternalErrorException("GET for AsyncTask -- Should not be here!") ; }
public void removeMonitor(DatasetChanges changes) { if ( monitor != changes ) throw new InternalErrorException() ; monitor = null ; }
public void removeTransactionalMonitor(TransactionalMonitor changes) { if ( txnMonitor != changes ) throw new InternalErrorException() ; txnMonitor = null ; }
@Override final protected JsonValue execGetItem(HttpAction action) { throw new InternalErrorException("GET for AsyncTask -- Should not be here!") ; }
@Override public void visit(ExprNone none) { // This should not occur. throw new InternalErrorException("Visit Expr.NONE"); }
@Override public PatchStorage newPatchStorage(DataSourceDescription dsd, PatchStore patchStore, LocalServerConfig configuration) { throw new InternalErrorException("PatchStoreProviderFile.newPatchStorage"); } }
public static int strCompare(String s1, String s2) { // Value is the difference of the first differing chars int x = s1.compareTo(s2) ; if ( x < 0 ) return CMP_LESS ; if ( x > 0 ) return CMP_GREATER ; if ( x == 0 ) return CMP_EQUAL ; throw new InternalErrorException("String comparison failure") ; }
public static int strCompareIgnoreCase(String s1, String s2) { // x is the difference of the first differing chars int x = s1.compareToIgnoreCase(s2) ; if ( x < 0 ) return CMP_LESS ; if ( x > 0 ) return CMP_GREATER ; if ( x == 0 ) return CMP_EQUAL ; throw new InternalErrorException("String comparison failure") ; }
public static int strCompare(String s1, String s2) { // Value is the difference of the first differing chars int x = s1.compareTo(s2) ; if ( x < 0 ) return CMP_LESS ; if ( x > 0 ) return CMP_GREATER ; if ( x == 0 ) return CMP_EQUAL ; throw new InternalErrorException("String comparison failure") ; }
/** Without any adornment */ public String asPlainString() { if ( uuid != null ) return uuid.toString() ; if ( string != null ) return string ; throw new InternalErrorException("Id has null UUID and string"); }
public static String fromUTF8bytes(byte[] bytes) { try { return new String(bytes, "UTF-8") ; } catch (UnsupportedEncodingException ex) { throw new InternalErrorException("UTF-8 not supported!") ; } }
@Override protected Binding moveToNextBinding() { if ( slot != null ) { Binding b = slot ; slot = null ; return b ; } if ( iterator != null ) { Binding b = iterator.next() ; return b ; } throw new InternalErrorException() ; }
private static void unregister(ObjectName objName) { log.debug("Unregister MBean: " + objName) ; if ( ! mgtObjects.containsKey(objName) ) log.warn("MBean not already registered: " + objName) ; try { mbs.unregisterMBean(objName) ; } catch (InstanceNotFoundException ex) { } // Meh, whatever catch (MBeanRegistrationException ex) { throw new InternalErrorException(ex) ; } }
@Override public Record next() { if ( ! hasNext() ) throw new NoSuchElementException() ; Record r = slot ; if ( r == null ) throw new InternalErrorException("Null slot after hasNext is true") ; slot = null ; return r ; } }
@Override public X next() { if ( ! hasNext() ) throw new NoSuchElementException() ; X r = slot ; if ( r == null ) throw new InternalErrorException("Null slot after hasNext is true") ; slot = null ; return r ; } }
@Override public Record next() { if ( ! hasNext() ) throw new NoSuchElementException() ; Record r = slot ; if ( r == null ) throw new InternalErrorException("Null slot after hasNext is true") ; slot = null ; return r ; } }
@Override public X next() { if ( ! hasNext() ) throw new NoSuchElementException() ; X r = slot ; if ( r == null ) throw new InternalErrorException("Null slot after hasNext is true") ; slot = null ; return r ; } }
public void reset(BPTreeNode node, int idx, BPTreePage page) { AccessStep s = traversed.remove(traversed.size()-1) ; AccessStep s2 = new AccessStep(node, idx, page) ; if ( s.node != s2.node ) throw new InternalErrorException("Bad attempt to reset: "+this+" with "+s2) ; traversed.add(new AccessStep(node, idx, page)) ; }
public void reset(BPTreeNode node, int idx, BPTreePage page) { AccessStep s = traversed.remove(traversed.size()-1) ; AccessStep s2 = new AccessStep(node, idx, page) ; if ( s.node != s2.node ) throw new InternalErrorException("Bad attempt to reset: "+this+" with "+s2) ; traversed.add(new AccessStep(node, idx, page)) ; }
public void reset(BPTreeNode node, int idx, BPTreePage page) { AccessStep s = traversed.remove(traversed.size()-1) ; AccessStep s2 = new AccessStep(node, idx, page) ; if ( s.node != s2.node ) throw new InternalErrorException("Bad attempt to reset: "+this+" with "+s2) ; traversed.add(new AccessStep(node, idx, page)) ; }