Package org.marian.core.exceptions

Examples of org.marian.core.exceptions.ContactException


        String expr =
          ContactsXML.X_CONTACTS_CONTACT+"[@"+ContactsXML.ATTR_EMAIL+"='"+email+"']";
        try {
            return this.xSearchElement(expr);
        } catch (XPathExpressionException ex) {
            throw new ContactException("Internal error", ex);
        }
    }
View Full Code Here


     */
    public String getEmailByName(String name) throws ContactException
    {
        Element e = this.getElementByName(name);
        if (e == null)
          throw new ContactException("Unknown contact: "+name);
        return e.getAttribute(ContactsXML.ATTR_EMAIL);
    }
View Full Code Here

     */
    public int getMaxSize(String name) throws ContactException
    {
        Element e = this.getElementByName(name);
        if (e == null)
          throw new ContactException("Unknown contact: "+name);
        return Integer.parseInt(e.getAttribute(ContactsXML.ATTR_MAXSIZE));
    }
View Full Code Here

     */
    public String getNameByEmail(String email) throws ContactException
    {
        Element e = this.getElementByEmail(email);
        if (e == null)
            throw new ContactException("Cannot find contact for email '"+email+"' on "+this.getDataFileName());
        return e.getAttribute(ContactsXML.ATTR_NAME);
    }
View Full Code Here

TOP

Related Classes of org.marian.core.exceptions.ContactException

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.