How to specify exceptions thrown by Delphi method?

Again, a question for newcomers to Delphi. Is there a standard way of specifying method exceptions (I've googled this but don't seem to find anything in this thread other than the basics of exception handling).

In other words, there is a standard way of saying "my function / procedure can pass this particular exception" in the function / procedure signature (I assume not). Then it is best to let the client of your API know what exceptions will be thrown by the given procedure / method

+3


source to share


1 answer


There is no Delphi Pascal syntax to do what you ask. All you can do is list the possible exceptions in the documentation for the function / procedure / method.



+6


source







All Articles