Examples of WikiException


Examples of org.jamwiki.WikiException

  /**
  *
  */
  private static void checkLength(String value, int maxLength) throws WikiException {
    if (value != null && value.length() > maxLength) {
      throw new WikiException(new WikiMessage("error.fieldlength", value, Integer.valueOf(maxLength).toString()));
    }
  }
View Full Code Here

Examples of org.jamwiki.WikiException

  */
  protected void validateUserDetails(WikiUserDetails userDetails) throws WikiException {
    checkLength(userDetails.getUsername(), 100);
    // do not throw exception containing password info
    if (userDetails.getPassword() != null && userDetails.getPassword().length() > 100) {
      throw new WikiException(new WikiMessage("error.fieldlength", "-", "100"));
    }
  }
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.