Package com.volantis.shared.throwable

Examples of com.volantis.shared.throwable.ExtendedRuntimeException


            try {
                pipeline.getPipelineProcess().fatalError(error);
            } catch (SAXException e) {
                // cannot continue so throw a runtime exception
                throw new ExtendedRuntimeException(e);
            }
        }

        // cast the configuration to the correct type and store it away
        configuration = (URLToURLCConfiguration)config;
View Full Code Here


        Element element = buf.openElement("<group-image-separator>");

        try {
            element.setAttribute("href", assetReference.getURL());
        } catch (AssetReferenceException e) {
            throw new ExtendedRuntimeException(e);
        }

        buf.closeElement("<group-image-separator>");
    }
View Full Code Here

                    // runtime exception
                    Throwable cause = result.getThrowable();
                    if (cause != null) {
                        // The entry has a throwable so throw a runtime
                        // exception, encapsulating the original throwable.
                        throw new ExtendedRuntimeException(
                            "Attempt to access " + key +
                            " failed due to the following error",
                            cause);
                    }
                }
View Full Code Here

                    try {
                        Period remaining = countdown.countdown();
                        entry.wait(remaining.inMillisTreatIndefinitelyAsZero());
                        state = entry.getState();
                    } catch (InterruptedException e) {
                        throw new ExtendedRuntimeException(e);
                    } catch (TimedOutException e) {
                        throw new ExtendedRuntimeException(e);
                    }
                } while (state.mustWait());
            }

            // At this point we know that the state will not be pending.
            if (state == EntryState.UPDATE) {
                // The entry is new so mark it as pending so other threads
                // will wait.
                entry.setState(EntryState.PENDING);
                entry.setAsyncResult(null);

                // Create a new one each time and do not hold a reference to it
                // within the cache as it needs to clean up if the caller
                // discards its reference to it before updating the entry.
                async = new AsyncUpdate(entry);

            } else if (state == EntryState.READY || state == EntryState.ERROR) {

                // Check to see whether the entry is in error or not.
                Throwable throwable = entry.getThrowable();
                if (throwable == null) {
                    // Entry is not in error.
                    async = entry.getAsyncResult();

                    if (entry.inCache()) {
                        // Inform the group that one of its entries was hit so
                        // it can update the structure to support the least
                        // recently used strategy.
                        InternalGroup group = entry.getGroup();
                        group.hitEntry(entry);
                    }
                } else {
                    // remove cache entry with ERROR saved, we can't cache it
                    removeEntry(key);

                    // The entry is in the error state so throw an
                    // exception, encapsulating the reason why the entry
                    // is in that state.
                    throw new ExtendedRuntimeException(
                        "Previous attempt to access " + key +
                        " failed due to the following error",
                        throwable);
                }
            } else if (state == EntryState.UNCACHEABLE) {
View Full Code Here

            }

            return function.invoke(context, params);
        } catch (ExpressionException e) {
            // Tunnel the exception out of this method as a runtime exception
            throw new ExtendedRuntimeException(e);
        }
    }
View Full Code Here

    // Javadoc inherited
    public void setDocumentLocator(Locator locator) {
        try {
            getCurrentState().setDocumentLocator(locator);
        } catch (SAXException e) {
            throw new ExtendedRuntimeException(
                    "Failed to forward a setDocument locator event", e);
        }
    }
View Full Code Here

    // javadoc inherited
    public void setDocumentLocator(Locator locator) {
        try {
            reportUnexpectedFatalError();
        } catch (SAXException e) {
            throw new ExtendedRuntimeException(e);
        }
    }
View Full Code Here

            operationProcess.setDocumentLocator(locator);
        } else {
            try {
                reportUnexpectedFatalError();
            } catch (SAXException e) {
                throw new ExtendedRuntimeException(
                        "Failed to forward a setDocument locator event", e);
            }
        }
    }
View Full Code Here

    // Javadoc inherited.
    public XMLPipeline createDynamicPipeline(XMLPipelineContext context) {
        try {
            return new MultiExprDynamicProcess(context);
        } catch (SAXException e) {
            throw new ExtendedRuntimeException(
                    "Could not create a pipeline", e);
        }
    }
View Full Code Here

        // be calculated relative to that. If it cannot be found then MCS
        // cannot start up.
        try {
            rootURL = getResourceURL("/");
        } catch (IOException e) {
            throw new ExtendedRuntimeException(e);
        }

        rootURLAsString = rootURL.toExternalForm();

View Full Code Here

TOP

Related Classes of com.volantis.shared.throwable.ExtendedRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.