List of usage examples for java.lang InternalError InternalError
public InternalError()
InternalError
with no detail message. From source file:net.paoding.spdy.client.netty.ResponseFuture.java
public boolean awaitUninterruptibly(long timeout, TimeUnit unit) { try {//ww w . j av a 2s .co m return await0(unit.toNanos(timeout), false); } catch (InterruptedException e) { throw new InternalError(); } }
From source file:net.sf.eclipsecs.core.projectconfig.ProjectConfiguration.java
/** * {@inheritDoc}/*from w ww . ja v a 2 s .co m*/ */ public ProjectConfiguration clone() { ProjectConfiguration clone = null; try { clone = (ProjectConfiguration) super.clone(); clone.mFileSets = new LinkedList<FileSet>(); clone.mUseSimpleConfig = mUseSimpleConfig; clone.mSyncFormatter = mSyncFormatter; // clone file sets List<FileSet> clonedFileSets = new ArrayList<FileSet>(); for (FileSet fileSet : getFileSets()) { clonedFileSets.add(fileSet.clone()); } clone.mFileSets = clonedFileSets; // clone filters List<IFilter> clonedFilters = new ArrayList<IFilter>(); for (IFilter filter : getFilters()) { clonedFilters.add(filter.clone()); } clone.mFilters = clonedFilters; } catch (CloneNotSupportedException e) { throw new InternalError(); // should never happen } return clone; }
From source file:net.paoding.spdy.client.netty.ResponseFuture.java
public boolean awaitUninterruptibly(long timeoutMillis) { try {/* w w w .j ava 2 s . c om*/ return await0(MILLISECONDS.toNanos(timeoutMillis), false); } catch (InterruptedException e) { throw new InternalError(); } }
From source file:ccc.api.http.SiteBrowserImpl.java
private String invoke(final HttpMethod m) { try {//from w ww . j a v a 2s.co m _httpClient.executeMethod(m); final int status = m.getStatusCode(); if (OK == status) { return m.getResponseBodyAsString(); } throw new RuntimeException(status + ": " + m.getResponseBodyAsString()); } catch (final HttpException e) { throw new InternalError(); // FIXME: Report error. } catch (final IOException e) { throw new InternalError(); // FIXME: Report error. } finally { m.releaseConnection(); } }
From source file:microsoft.exchange.webservices.data.misc.TimeSpan.java
/** * Returns a clone of this TimeSpan.//w ww. j a va2 s .c o m * * @return a clone of this TimeSpan. */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { LOG.error(e); throw new InternalError(); } }
From source file:com.projity.pm.assignment.HasAssignmentsImpl.java
public Object clone() { try {/*from w w w. j a v a2s . co m*/ return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } }
From source file:BucketizedHashtable.java
/** * Creates and returns a shallow copy of this object. The keys and values * are not cloned./*from ww w.j a v a2 s . c o m*/ * @return a clone of BucketizedHashtable */ public Object clone() { try { BucketizedHashtable bt = (BucketizedHashtable) super.clone(); bt.bucketSize = bucketSize; bt.hashtables = new Hashtable[bucketSize]; for (int i = 0; i < bucketSize; i++) { bt.hashtables[i] = (Hashtable) hashtables[i].clone(); } return bt; } catch (CloneNotSupportedException e) { // this shouldn't happen, since we are Cloneable throw new InternalError(); } }
From source file:org.apache.bval.jsr.ApacheValidatorFactory.java
/** * {@inheritDoc}/*from ww w . j a va2 s . c o m*/ */ @Override public synchronized ApacheValidatorFactory clone() { try { return (ApacheValidatorFactory) super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); // VM bug. } }
From source file:MersenneTwisterFast.java
public Object clone() { try {//from w w w . j ava2 s. com MersenneTwisterFast f = (MersenneTwisterFast) (super.clone()); f.mt = (int[]) (mt.clone()); f.mag01 = (int[]) (mag01.clone()); return f; } catch (CloneNotSupportedException e) { throw new InternalError(); } // should never happen }
From source file:org.sweble.wikitext.parser.postprocessor.ElementType.java
public static ElementType getType(WtNode n) { switch (n.getNodeType()) { case NT_PARSED_WIKITEXT_PAGE: return PAGE; case NT_SECTION: return SECTION; case NT_HEADING: return SECTION_HEADING; case NT_BODY: // FIXME: Pretending that body can only be a section body might // be dangerous? return SECTION_BODY; case NT_DEFINITION_LIST: return DL; case NT_ORDERED_LIST: return OL; case NT_PARAGRAPH: return P; case NT_UNORDERED_LIST: return UL; case NT_LIST_ITEM: return LI; case NT_DEFINITION_LIST_DEF: return DD; case NT_DEFINITION_LIST_TERM: return DT; case NT_TABLE: return TABLE; case NT_TABLE_CAPTION: return CAPTION; case NT_TABLE_CELL: return TD; case NT_TABLE_HEADER: return TH; case NT_TABLE_ROW: return TR; case NT_TABLE_IMPLICIT_TBODY: return TBODY; case NT_BOLD: return B; case NT_ITALICS: return I; case NT_SEMI_PRE: return SEMIPRE; case NT_HORIZONTAL_RULE: return HR; case NT_IMAGE_LINK: return TreeBuilder.isInlineImage((WtImageLink) n) ? INLINE_IMG : FRAMED_IMG; case NT_INTERNAL_LINK: return INT_LINK; case NT_EXTERNAL_LINK: return EXT_LINK; case NT_URL: return URL; case NT_XML_START_TAG: case NT_IM_START_TAG: case NT_XML_END_TAG: case NT_IM_END_TAG: case NT_XML_EMPTY_TAG: case NT_XML_ELEMENT: return getType((WtNamedXmlElement) n); case NT_LCT_VAR_CONV: return LCT_VAR_CONV; default://from w w w . j av a 2 s .c om throw new InternalError(); } }