Calculated properties do not throw exceptions - by Shuang Wang

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 781812 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 3/20/2013 7:25:32 PM
Access Restriction Public


Calculated properties do not throw exceptions, even when throw is explicitly specified within the Expression ScriptBlock. In the real world, we want to look up an IP Address by machine name in a calculated property, and throw if the machine does not exist. Instead of an exception during lookup, we get a $null property and silently invalid data that doesn't get caught until much later.
Sign in to post a comment.