use PropValueError instead of manual raise with fixed message

git-svn-id: trunk@14787 -
This commit is contained in:
paul 2008-04-09 05:53:25 +00:00
parent 3ba06c5d7b
commit 6e278016cc

View File

@ -3523,7 +3523,7 @@ begin
vaInt32: vaInt32:
AChildPos := ReadInt32; AChildPos := ReadInt32;
else else
raise EReadError.Create('Invalid Property Value'); PropValueError;
end; end;
end; end;
end; end;
@ -3661,7 +3661,7 @@ begin
break; break;
Value := GetEnumValue(PTypeInfo(EnumType), Name); Value := GetEnumValue(PTypeInfo(EnumType), Name);
if Value = -1 then if Value = -1 then
raise EReadError.Create('Invalid Property Value'); PropValueError;
Result := Result or (1 shl Value); Result := Result or (1 shl Value);
end; end;
except except