Friday, December 21, 2012

VB script style try/catch/finally

isAsset = False
Try
   If content_data.AssetData.Id = "" Then
      isAsset = False
   Else
      isAsset = True
   End If
Catch
   Throw New System.Exception("Whatever")
Finally
   somethingElse = "Whatever"
End Try

No comments:

Post a Comment