Package fr.soleil.salsa.exception

Examples of fr.soleil.salsa.exception.SalsaDeviceException


                    data = scalar.readWritten(Double.class);
                }
            }
            catch (DevFailed e) {
                e.printStackTrace();
                SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                        "Error while trying to read the written TangORB attribute value for the device "
                                + device.getName() + ".", e);
                throw salsaDeviceException;
            }
        }
View Full Code Here


            String message = "Error setting attribute " + attributeName + " to " + attributeValue
                    + " : " + e.getMessage();
            if (e.errors != null && e.errors.length > 0) {
                message += " : " + e.errors[0].desc;
            }
            throw new SalsaDeviceException(message, e);
        }
    }
View Full Code Here

            String message = "Error setting attribute " + attributeName + " to " + attributeValue
                    + " : " + e.getMessage();
            if (e.errors != null && e.errors.length > 0) {
                message += " : " + e.errors[0].desc;
            }
            throw new SalsaDeviceException(message, e);
        }
    }
View Full Code Here

                    AttributeHelper.insertFromDouble(data, attribute);
                    writeAttribute(device, attribute);
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to write the TangORB attribute value for the device "
                                    + device.getName() + ".", e);
                    throw salsaDeviceException;
                }
            }
View Full Code Here

            String message = "Error setting attribute " + attributeName + " to " + attributeValue
                    + " : " + e.getMessage();
            if (e.errors != null && e.errors.length > 0) {
                message += " : " + e.errors[0].desc;
            }
            throw new SalsaDeviceException(message, e);
        }
    }
View Full Code Here

                    TangoAttribute ta = new TangoAttribute(device.getName());
                    ta.writeSpectrum(doubleArray);
                }
                catch (DevFailed e) {
                    e.printStackTrace();
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to write the TangORB attribute value for the device "
                                    + device.getName() + ".", e);
                    throw salsaDeviceException;
                }
            }
View Full Code Here

                        AttributeHelper.insertFromDoubleArray(doubleArray, attribute, dimX, dimY);
                        writeAttribute(device, attribute);
                    }
                    catch (DevFailed e) {
                        e.printStackTrace();
                        SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                                "Error while trying to write the TangORB attribute value for the device "
                                        + device.getName() + ".", e);
                        throw salsaDeviceException;
                    }
                }
View Full Code Here

            if (attribute != null) {
                try {
                    quality = QualityUtilities.getNameForQuality(attribute.getQuality());
                }
                catch (DevFailed e) {
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to read the quality of the TangORB attribute value for the device "
                                    + device.getName() + ".", e);
                    throw salsaDeviceException;
                }
            }
View Full Code Here

            if (proxy != null) {
                try {
                    state = StateUtilities.getNameForState(proxy.state());
                }
                catch (DevFailed e) {
                    SalsaDeviceException salsaDeviceException = new SalsaDeviceException(
                            "Error while trying to read the state of the device "
                                    + device.getName() + ".", e);
                    throw salsaDeviceException;
                }
            }
View Full Code Here

     */
    private static DeviceProxy getDeviceProxy(IDevice device) throws SalsaDeviceException {
        String name = device.getName();
        int separatorPos = name.lastIndexOf("/");
        if (separatorPos < 0) {
            throw new SalsaDeviceException("Error : invalid device name " + name + " : no \"/\".",
                    false);
        }
        String deviceName = name.substring(0, separatorPos);
        return getDeviceProxy(deviceName);
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.exception.SalsaDeviceException

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.