Hey Guys, trying to properly implement Try Catch in a script I’m working on.
I’ve used Catch before, but never to catch a specific error.
From what I understand it should look like:
Try {Do-Thing}
Catch
{[ErrorType]
DoOther-Thing
}
Right now I am trying to create an error for parameter violation error, what do I need to put in the [ErrorType] to get it to recognize that error? I tried ParameterBindingValidationException but that didn’t work.