Package org.asteriskjava.live

Examples of org.asteriskjava.live.ManagerCommunicationException


     */
    static ManagerCommunicationException mapSendActionException(String actionName, Exception exception)
    {
        if (exception instanceof IllegalStateException)
        {
            return new ManagerCommunicationException("Not connected to Asterisk Server", exception);
        }
        else if (exception instanceof EventTimeoutException)
        {
            return new ManagerCommunicationException("Timeout waiting for events from " + actionName + "Action", exception);
        }
        else
        {
            return new ManagerCommunicationException("Unable to send " + actionName + "Action", exception);
        }
    }
View Full Code Here


     */
    static ManagerCommunicationException mapSendActionException(String actionName, Exception exception)
    {
        if (exception instanceof IllegalStateException)
        {
            return new ManagerCommunicationException("Not connected to Asterisk Server", exception);
        }
        else if (exception instanceof EventTimeoutException)
        {
            return new ManagerCommunicationException("Timeout waiting for events from " + actionName + "Action", exception);
        }
        else
        {
            return new ManagerCommunicationException("Unable to send " + actionName + "Action", exception);
        }
    }
View Full Code Here

TOP

Related Classes of org.asteriskjava.live.ManagerCommunicationException

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.