Package phonetalks.exceptions

Examples of phonetalks.exceptions.UnexistingElementException


    }

    public SubscriberEntry addCall(String number, PhoneCall call) {
        SubscriberEntry entry = findByNumber(number);
        if (entry == null) {
            throw new UnexistingElementException("Cant add call to unexisting entry.");
        }
        entry.addCall(call);
        return entry;
    }
View Full Code Here


    }

    public SubscriberEntry removeCall(String number, PhoneCall call) {
        SubscriberEntry entry = findByNumber(number);
        if (entry == null) {
            throw new UnexistingElementException("Cant remove from unexisting entry.");
        }
        entry.removeCall(call);
        return entry;
    }
View Full Code Here

TOP

Related Classes of phonetalks.exceptions.UnexistingElementException

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.