IsExpected Method
Determines if an exception is one that could happen naturally and should be handled gracefully or a fatal error.
Syntax
System.bool IsExpected(
System.Exception ex
)Function IsExpected( _
ByVal ex As System.Exception _
) As System.BooleanParameters
| Name | Description |
|---|---|
| ex | The exception to parse. |
Return Value
True if the exception is expected. False otherwise.
Remarks
For example "File checked out to another user" is an expected exception. "Object reference not found" or "Index out of range" is not