aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2011-03-03 14:50:42 +0100
committerNiclas Eklund <[email protected]>2011-03-03 14:50:42 +0100
commit8c4ece5c36e153e739f344eccadd01b4c3e7ccce (patch)
tree7a9b26ea0b84670c6a404f1873cde80dc5c28528 /lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl
parent45892fd845b74532a6cae750372b6e80eb8e3ad9 (diff)
parent4414036566181c45f592036a03a3b5898f725d95 (diff)
downloadotp-8c4ece5c36e153e739f344eccadd01b4c3e7ccce.tar.gz
otp-8c4ece5c36e153e739f344eccadd01b4c3e7ccce.tar.bz2
otp-8c4ece5c36e153e739f344eccadd01b4c3e7ccce.zip
Merge branch 'nick/CORBA/avoid_warnings/OTP-9050' into dev
* nick/CORBA/avoid_warnings/OTP-9050: Removed code commented out. More specs removed. More specs removed. More specs removed. Removed more spec:s that wasn't needed. Removed spec:s that wasn't needed. Updated light weight tests. Updsated macro EFORMAT exit handling. Corrected spec usage. Eliminated Dialyzer warnings when using exit or throw. Conflicts: lib/cosEvent/doc/src/notes.xml lib/cosEvent/vsn.mk lib/cosEventDomain/doc/src/notes.xml lib/cosEventDomain/vsn.mk lib/cosNotification/vsn.mk lib/cosProperty/doc/src/notes.xml lib/cosProperty/vsn.mk lib/cosTime/doc/src/notes.xml lib/cosTime/vsn.mk lib/orber/include/ifr_types.hrl lib/orber/vsn.mk
Diffstat (limited to 'lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl')
-rw-r--r--lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl b/lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl
index b099026b88..202df42b61 100644
--- a/lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl
+++ b/lib/cosProperty/src/CosPropertyService_PropertySetDefFactory_impl.erl
@@ -2,7 +2,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2000-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -152,12 +152,18 @@ create_initial_propertysetdef(_OE_This, State, PropDefs) ->
%% Internal functions
%%======================================================================
evaluate_propertysetdef(SetDefs) ->
- evaluate_propertysetdef(SetDefs, [], []).
+ case evaluate_propertysetdef(SetDefs, [], []) of
+ {ok, NewProperties} ->
+ NewProperties;
+ {error, Exc} ->
+ corba:raise(#'CosPropertyService_MultipleExceptions'{exceptions = Exc})
+ end.
+
evaluate_propertysetdef([], NewProperties, []) ->
%% No exceptions found.
- NewProperties;
+ {ok, NewProperties};
evaluate_propertysetdef([], _, Exc) ->
- corba:raise(#'CosPropertyService_MultipleExceptions'{exceptions = Exc});
+ {error, Exc};
evaluate_propertysetdef([#'CosPropertyService_PropertyDef'
{property_name = Name,
property_value = Value,