Examples of VCardException


Examples of net.sourceforge.cardme.vcard.exceptions.VCardException

   * @param vcard
   * @throws VCardException
   */
  public void setVCard(VCard vcard) throws VCardException {
    if(vcard == null) {
      throw new VCardException("Cannot set a null vcard.");
    }
   
    this.vcard = vcard;
   
    if(vcard instanceof VCardErrorHandler) {
View Full Code Here

Examples of net.sourceforge.cardme.vcard.exceptions.VCardException

      this.outputVersion = VCardVersion.V3_0;
    }
    else {
      if(outputVersion == VCardVersion.V2_1 || outputVersion == VCardVersion.V4_0) {
        //TODO add in support for 2.1
        throw new VCardException("Version "+outputVersion+" not supported.");
      }
     
      this.outputVersion = outputVersion;
    }
  }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.exceptions.VCardException

    if(orgUnit == null) {
      throw new NullPointerException("Cannot add a null organizational unit.");
    }
   
    if(orgName == null) {
      throw new VCardException("Cannot add organizational units without first seting the organization name.");
    }
   
    orgUnits.add(orgUnit);
    return this;
  }
View Full Code Here

Examples of net.sourceforge.cardme.vcard.exceptions.VCardException

    if(orgUnits == null) {
      throw new NullPointerException("Cannot add a null organizational units list.");
    }
   
    if(orgName == null) {
      throw new VCardException("Cannot add all organizational units without first seting the organization name.");
    }
   
    this.orgUnits.addAll(orgUnits);
    return this;
  }
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.