mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-19 20:48:16 +02:00
use PropValueError instead of manual raise with fixed message
git-svn-id: trunk@14787 -
This commit is contained in:
parent
3ba06c5d7b
commit
6e278016cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user