Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.AssertionFailedException


            null, // no access rules
            false, // no accessible files to combine
            NO_EXTRA_ATTRIBUTES);
        break;
      default :
        throw new AssertionFailedException(Messages.bind(Messages.classpath_unknownKind, kindAttr));
    }

    if (unknownAttributes != null || unknownChildren != null) {
      UnknownXmlElements unknownXmlElements = new UnknownXmlElements();
      unknownXmlElements.attributes = unknownAttributes;
View Full Code Here


    return result;
  }

  private void logWarning(String message, Object source, Saveable model) {
    // create a new exception
    AssertionFailedException assertionFailedException = new AssertionFailedException("unknown saveable: " + model //$NON-NLS-1$
        + " from part: " + source); //$NON-NLS-1$
    // record the current stack trace to help with debugging
    assertionFailedException.fillInStackTrace();
    WorkbenchPlugin.log(StatusUtil.newStatus(IStatus.WARNING, message,
        assertionFailedException));
  }
View Full Code Here

   *
   * @param message
   *            the message to include in the exception
   */
  public static void fail(String message) {
    throw new AssertionFailedException(message);
  }
View Full Code Here

            if (special instanceof Token) {
                special = ((Token) special).asSpecialStr();
            } else {
                if (special instanceof String) {
                    throw new AssertionFailedException("assertion failed: Special: " + special + " is not valid");
                }
            }

            if (after) {
                if (special instanceof commentType) {
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.AssertionFailedException

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.