Package de.dermoba.srcp.common.exception

Examples of de.dermoba.srcp.common.exception.SRCPException


     * @return the ervers reply
     * @throws SRCPException
     */
    public String send(String pCommand) throws SRCPException {
        String response = sendReceive(pCommand);
        SRCPException ex = ReceivedExceptionFactory.parseResponse(pCommand,
                response);
        if (ex != null) {
            throw ex;
        }
        return response;
View Full Code Here


        }
        if (instance == null)
            return null;
        TokenizedLine line = new TokenizedLine(response);
        line.nextStringToken(); // timestamp
        SRCPException ex = null;
        try {
            String strCode = line.nextStringToken();
            Integer code = new Integer(strCode);
            if (code >= new Integer(400)) {
                try {
                    ex = (SRCPException) (Class.forName(instance.get(strCode)
                            .toString()).newInstance());
                    ex.setRequestString(request);
                } catch (ClassNotFoundException x) {
                    throw new SRCPIOException();
                } catch (InstantiationException x) {
                    throw new SRCPIOException();
                } catch (IllegalAccessException x) {
View Full Code Here

TOP

Related Classes of de.dermoba.srcp.common.exception.SRCPException

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.