Opened 16 years ago
Last modified 16 years ago
#265 closed defect
ModelBuilder runtime exception — at Version 1
| Reported by: | Stephen Siegel | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1 |
| Component: | front | Version: | 1.1 |
| Keywords: | main exception syntax | Cc: |
Description (last modified by )
This should be changed to a SyntaxException...
if (hasMainFunction == false) {
throw new RuntimeException(
"The program must have a main function as an entry point.");
}
Also, it should print out the file name.
Need to get rid of all RuntimeExceptions in front end and replace with SyntaxExceptions.
Note:
See TracTickets
for help on using tickets.
