Skip to content
Snippets Groups Projects
Commit 358a1c89 authored by Sebastien Leport's avatar Sebastien Leport
Browse files

if properties are missing an exception is sent

parent f4185e56
Branches
Tags
No related merge requests found
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/SY900S_group/src/SY900S_Group.cpp,v 1.4 2007-05-22 12:59:52 sebleport Exp $";
static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentation/SY900S_group/src/SY900S_Group.cpp,v 1.5 2007-05-22 13:15:38 sebleport Exp $";
//+=============================================================================
//
// file : SY900S_Group.cpp
......@@ -13,9 +13,12 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/Instrumentatio
//
// $Author: sebleport $
//
// $Revision: 1.4 $
// $Revision: 1.5 $
//
// $Log: not supported by cvs2svn $
// Revision 1.4 2007/05/22 12:59:52 sebleport
// _ some command and attribute names have changed
//
// Revision 1.3 2006/08/03 14:58:27 sebleport
// - status modification
// - add GetLastError command
......@@ -146,7 +149,8 @@ namespace SY900S_Group_ns
{
// Initialize your default values here.
//------------------------------------------
groupNumber = 0;
sY900SgenericProxyServer = "";
// Read device properties from database.(Automatic code generation)
//-------------------------------------------------------------
......@@ -186,6 +190,15 @@ namespace SY900S_Group_ns
// End of Automatic code generation
//-------------------------------------------------------------
if(groupNumber == 0)
INFO_STREAM<<" the group numer is the default value = 0 "<<endl;
if(sY900SgenericProxyServer == "")
Tango::Except::throw_exception(
(const char*) "TANGO_CONFIGURATION_ERROR",
(const char*) "SY900SgenericProxyServer property is missing ",
(const char*) "SY900S_Group::get_device_property()");
}
//+----------------------------------------------------------------------------
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment