Home Dashboard Directory Help
Search

Calculated properties do not throw exceptions by Tim Burris


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 782842
Opened: 4/2/2013 10:55:27 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description


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.
Details
Sign in to post a comment.
Sign in to post a workaround.