B
bill salkin
I'd like to create a custom error handler like this in
VB.NET:
....
try
...
Throw ("Lender Name not in table")
....
catch ("Lender Name not in table")
' handle excpetion, put up nice user message, etc.
catch
end try
Is something like that possible in VB.NET?
Note that the error is not one of the standard exceptions
that .NET exposes so there is no obvious way to "catch"
it. The error relates to the business logic of the app. (I
don't know if one can "goto" a catch clause -- but I don't
want to code it that way).
TIA,
Bill
VB.NET:
....
try
...
Throw ("Lender Name not in table")
....
catch ("Lender Name not in table")
' handle excpetion, put up nice user message, etc.
catch
end try
Is something like that possible in VB.NET?
Note that the error is not one of the standard exceptions
that .NET exposes so there is no obvious way to "catch"
it. The error relates to the business logic of the app. (I
don't know if one can "goto" a catch clause -- but I don't
want to code it that way).
TIA,
Bill