Examples of ExtIllegalArgumentException


Examples of de.susebox.java.lang.ExtIllegalArgumentException

   * @param   name  a name for the <code>arg</code> parameter
   * @throws  IllegalArgumentException if the given <code>arg</code> is null or empty
   */
  protected void checkArgument(String arg, String name) throws IllegalArgumentException {
    if (arg == null) {
      throw new ExtIllegalArgumentException("{0} is null.", new Object[] { name } );
    } else if (arg.length() <= 0) {
      throw new ExtIllegalArgumentException("{0} is empty.", new Object[] { name } );
    }
  }
View Full Code Here

Examples of de.susebox.java.lang.ExtIllegalArgumentException

   * @throws  IllegalArgumentException if the given <code>arg</code> is null or empty
   */
  protected void checkPropertyArgument(TokenizerProperty property) throws IllegalArgumentException {
    // check the parameter
    if (property == null) {
      throw new ExtIllegalArgumentException("Property is null.", null );
    } else if (property.getImages() == null) {
      throw new ExtIllegalArgumentException("No image(s) given in property.", null );
    } else if (property.getImages()[0] == null) {
      throw new ExtIllegalArgumentException("No (leading) image given in property.", null );
    }
  }
View Full Code Here

Examples of de.susebox.java.lang.ExtIllegalArgumentException

      break;

    case Token.WHITESPACE:
    case Token.SEPARATOR:
    default:
      throw new ExtIllegalArgumentException("Unsupported property type {0}. (Leading) image \"{1}\".",
                                            new Object[] { new Integer(type), startImage } );
    }

    // either the required property or null
    return prop;
View Full Code Here

Examples of de.susebox.java.lang.ExtIllegalArgumentException

      return addPattern(property);

    case Token.WHITESPACE:
    case Token.SEPARATOR:
    default:
      throw new ExtIllegalArgumentException("Unsupported property type {0}. (Leading) image \"{1}\".",
                                            new Object[] { new Integer(property.getType()), property.getImages()[0] } );
    }
  }
View Full Code Here

Examples of de.susebox.java.lang.ExtIllegalArgumentException

      break;

    case Token.WHITESPACE:
    case Token.SEPARATOR:
    default:
      throw new ExtIllegalArgumentException("Unsupported property type {0}. (Leading) image \"{1}\".",
                                            new Object[] { new Integer(property.getType()), image } );
    }
   
    // return removed property
    return prop;
View Full Code Here

Examples of de.susebox.java.lang.ExtIllegalArgumentException

    String          pattern = patternProp.getImages()[0];
   
    try {
      data = new PatternMatcher(patternProp, getParseFlags());
    } catch (Throwable ex) {
      throw new ExtIllegalArgumentException(ex, "Pattern matching is not available (use JDK 1.4 or above).");
    }
                                                     
    // Register pattern. First search for existing one
    for (int index = 0; index < _patterns.size(); ++index) {
      PatternMatcher    oldData = (PatternMatcher)_patterns.get(index);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.