Examples of VCardError


Examples of net.sourceforge.cardme.vcard.errors.VCardError

  public void addError(String errorMessage, ErrorSeverity severity, Throwable error) throws NullPointerException {
    if(errorMessage == null) {
      throw new NullPointerException("Cannot add a null errorMessage.");
    }
   
    VCARD_ERRORS.add(new VCardError(errorMessage, error, severity));
  }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.errors.VCardError

   *   - The exception that was thrown
   * @param severity
   *   - The severity of the exception
   */
  private void handleError(String errorMessage, Throwable exception, ErrorSeverity severity) {
    VCardError vError = new VCardError();
    vError.setErrorMessage(errorMessage);
    vError.setSeverity(severity);
   
    if(exception != null) {
      vError.setError(exception);
    }
   
    ((VCardErrorHandler)vcard).addError(vError);
  }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.errors.VCardError

   * @param errorMessage
   * @param exception
   * @param severity
   */
  private void handleError(VCardImpl vcard, String errorMessage, Throwable exception, ErrorSeverity severity) {
    VCardError vError = new VCardError();
    vError.setErrorMessage(errorMessage);
    vError.setSeverity(severity);
   
    if(exception != null) {
      vError.setError(exception);
    }
   
    vcard.addError(vError);
  }
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.