Codota Logo
org.jboss.windup.util.exception
Code IndexAdd Codota to your IDE (free)

How to use org.jboss.windup.util.exception

Best Java code snippets using org.jboss.windup.util.exception (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.jboss.windup.config/windup-config-api

/**
 * Stores the exception which holds information if, and where, the Windup stopped (typically on an external request).
 * If windup was stopped, this must be called.
 */
public void setWindupStopException(WindupStopException windupStopException)
{
  if (this.windupStopException != null)
    throw new WindupException("Trying to set the stop exception while it was already set."
        + " The cause contains the original one.", this.windupStopException);
  this.windupStopException = windupStopException;
}
origin: org.jboss.windup.utils/windup-utils

public WindupMultiException(String msg, List<Exception> exs)
{
  super(formatMessage(msg, exs, false));
}
origin: windup/windup

public WindupMultiStringException(String msg, List<String> errors)
{
  super(formatMessage(msg, errors));
}
origin: windup/windup

private void checkCancelled(GraphRewrite event)
{
  if (event.shouldWindupStop())
  {
    throw new WindupStopException("Request to stop detected during unzipping of archives");
  }
}
origin: org.jboss.windup.utils/utils

  public static Object executeXPath(Node document, XPathExpression expr, QName result) throws XPathException, MarshallingException
  {
    try
    {
      return expr.evaluate(document, result);
    }
    catch (Exception e)
    {
      throw new MarshallingException("Exception unmarshalling XML.", e);
    }
  }
}
origin: windup/windup

private void validateWrappedCondition(Object wrappedCondition)
{
  if(! (wrappedCondition instanceof GraphCondition)) {
    throw new WindupException("The <" + ELEMENT_NAME + "> element must wrap GraphConditions only." );
  }
}
origin: org.jboss.windup.rules.apps/windup-rules-java-api

private void checkCancelled(GraphRewrite event)
{
  if (event.shouldWindupStop())
  {
    throw new WindupStopException("Request to stop detected during unzipping of archives");
  }
}
origin: windup/windup

public WindupMultiException(String msg, List<Exception> exs)
{
  super(formatMessage(msg, exs, false));
}
origin: org.jboss.windup.utils/windup-utils

public WindupMultiStringException(String msg, List<String> errors)
{
  super(formatMessage(msg, errors));
}
origin: windup/windup

/**
 * Stores the exception which holds information if, and where, the Windup stopped (typically on an external request).
 * If windup was stopped, this must be called.
 */
public void setWindupStopException(WindupStopException windupStopException)
{
  if (this.windupStopException != null)
    throw new WindupException("Trying to set the stop exception while it was already set."
        + " The cause contains the original one.", this.windupStopException);
  this.windupStopException = windupStopException;
}
origin: org.jboss.windup.utils/utils

public WindupMultiException(String msg, List<Exception> exs)
{
  super(formatMessage(msg, exs, false));
}
origin: org.jboss.windup.utils/utils

public WindupMultiStringException(String msg, List<String> errors)
{
  super(formatMessage(msg, errors));
}
origin: windup/windup

private void validateWrappedCondition(Object wrappedCondition)
{
  if(! (wrappedCondition instanceof GraphCondition)) {
    throw new WindupException("The <" + ELEMENT_NAME + "> element must wrap GraphConditions only." );
  }
}
origin: windup/windup

  private void validateChildren(List<Element> children) throws WindupException{
    if(children.size() != 1) {
      throw new WindupException("The <" + ELEMENT_NAME + "> element must have exactly 1 child." );
    }
  }
}
origin: windup/windup

private void validateAttributes(String size) throws WindupException{
  if(!Pattern.matches("[0-9]+",size)) {
    throw new WindupException("The <" + ELEMENT_NAME + "> element's '" +IterableFilterHandler.SIZE_ATTRIBUTE + " attribute is not a valid number." );
  }
}
origin: windup/windup

  private void validateChildren(List<Element> children)
  {
    if(children.size() != 1) {
      throw new WindupException("The <" + ELEMENT_NAME + "> element must have exactly 1 child." );
    }
  }
}
origin: org.jboss.windup.config/windup-config-xml

  @SuppressWarnings("unchecked")
  private Class<? extends WindupVertexFrame> cast(Class<? extends WindupFrame> typeAsWindupFrame)
  {
    if (!WindupVertexFrame.class.isAssignableFrom(typeAsWindupFrame))
      throw new WindupException("Only types that are a subclass of " + WindupVertexFrame.class.getCanonicalName() + " are supported by the "
          + ELEMENT_NAME + " element!");

    return (Class<? extends WindupVertexFrame>) typeAsWindupFrame;
  }
}
origin: windup/windup

  @SuppressWarnings("unchecked")
  private Class<? extends WindupVertexFrame> cast(Class<? extends WindupFrame> typeAsWindupFrame)
  {
    if (!WindupVertexFrame.class.isAssignableFrom(typeAsWindupFrame))
      throw new WindupException("Only types that are a subclass of " + WindupVertexFrame.class.getCanonicalName() + " are supported by the "
          + ELEMENT_NAME + " element!");

    return (Class<? extends WindupVertexFrame>) typeAsWindupFrame;
  }
}
origin: org.jboss.windup.config/windup-config-api

public Tag getTag(String tagName)
{
  Tag tag = findTag(tagName);
  if (null == tag)
    throw new WindupException("Tag does not exist: " + tagName);
  return tag;
}
origin: windup/windup

public Tag getTag(String tagName)
{
  Tag tag = findTag(tagName);
  if (null == tag)
    throw new WindupException("Tag does not exist: " + tagName);
  return tag;
}
org.jboss.windup.util.exception

Most used classes

  • WindupException
    Root Windup exception to inherit other Windup-specific exceptions from.
  • WindupStopException
    Thrown in certain situations when we need to stop Windup execution, typically based on external requ
  • WindupMultiStringException
    An exception that shows multiple error messages.
  • MarshallingException
  • WindupMultiException
    An exception that shows multiple error messages.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now