Package hudson.plugins.im

Examples of hudson.plugins.im.IMMessageTargetConversionException


      // obviously, there is no easy regexp to validate this.
      // Additionally, we require the part before the @.
        // So, just some very simple validation:
        final int i = target.indexOf('@');
        if (i == -1) {
          throw new IMMessageTargetConversionException("Invalid input for target: '" + target + "'." +
              "\nDoesn't contain a @.");
        } else if (target.indexOf('@', i + 1) != -1)
        {
            throw new IMMessageTargetConversionException("Invalid input for target: '" + target + "'." +
                "\nContains more than on @.");
        }
    }
View Full Code Here

TOP

Related Classes of hudson.plugins.im.IMMessageTargetConversionException

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.