Opened 16 years ago

Closed 16 years ago

#265 closed defect (fixed)

ModelBuilder runtime exception

Reported by: Stephen Siegel Owned by: zirkel
Priority: major Milestone: 1.1
Component: front Version: 1.1
Keywords: main exception syntax Cc:

Description (last modified by Stephen Siegel)

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.

Change History (3)

comment:1 by Stephen Siegel, 16 years ago

Description: modified (diff)

comment:2 by zirkel, 16 years ago

Owner: set to zirkel
Status: newaccepted

comment:3 by zirkel, 16 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.