return "not connected" before "no write access" for put
This commit is contained in:
@@ -233,6 +233,12 @@ void nciu::stringVerify ( const char *pStr, const unsigned count )
|
||||
void nciu::write ( unsigned type,
|
||||
arrayElementCount countIn, const void *pValue )
|
||||
{
|
||||
// make sure that they get this and not "no write access"
|
||||
// if disconnected
|
||||
if ( ! this->f_connected ) {
|
||||
throw notConnected();
|
||||
}
|
||||
|
||||
if ( ! this->accessRightState.writePermit() ) {
|
||||
throw noWriteAccess();
|
||||
}
|
||||
@@ -251,6 +257,12 @@ void nciu::write ( unsigned type,
|
||||
cacChannel::ioStatus nciu::write ( unsigned type, arrayElementCount countIn,
|
||||
const void *pValue, cacWriteNotify ¬ify, ioid *pId )
|
||||
{
|
||||
// make sure that they get this and not "no write access"
|
||||
// if disconnected
|
||||
if ( ! this->f_connected ) {
|
||||
throw notConnected();
|
||||
}
|
||||
|
||||
if ( ! this->accessRightState.writePermit() ) {
|
||||
throw noWriteAccess();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user