How to know which exceptions a method can throw?

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Martin Lundberg - Sweden
Avatar
Hello!

2 questions...

#1. I'm wondering, if the LoadLanguageFromXML() method gets a path to a file that deos not exist, what exception does it throw? Is it possible to see all the exceptions the different methods can throw?

#2. Am I allowed to use the SyntaxLanguage defenitions that you ship with the example code? And am I allowed to remove the copyright property?

Thanks in advance!

[ 12-15-2004: Message edited by: Martin Lundberg ]

[ 12-15-2004: Message edited by: Martin Lundberg ]

Martin Lundberg
Student, Sweden

Comments (2)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
1) If you pass a filename path, we call File.OpenRead to open the file. So whatever that throws is what could possibly be thrown. In addition, our code may throw a InvalidLanguageDefinitionException if it finds a problem with the language definition.

2) Yes, you may use those definitions if you'd like. Maybe keep a string property that says something like the language definition is based on a definition developed by Actipro Software.


Actipro Software Support

Posted 15 years ago by Martin Lundberg - Sweden
Avatar
Sounds like a good deal =) and pretty true too!

Martin Lundberg
Student, Sweden

The latest build of this product (v2018.1 build 0341) was released 8 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.