Any equivalent vbObjectError in c#

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

hi

in VB, we can have

Err.Raise vbObjectError + <app_number>, ...
where "<app_number>" is some application-defined error number.

This will prevent your error numbers from conflicting with system-defined
error numbers

How do I do the similar at c#?

Thanks!
 
Mullin Yu said:
in VB, we can have

Err.Raise vbObjectError + <app_number>, ...
where "<app_number>" is some application-defined error number.

This will prevent your error numbers from conflicting with system-defined
error numbers

How do I do the similar at c#?

You don't - you throw exceptions instead.
 
Back
Top