• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help using handler please  RSS feed

 
Rudy Sam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I am trying to create a handler to log errors to an external file. But I have an error. Could any one help me out please? below is the code


This is the error message:
Syntax error, insert "Finally" to complete BlockStatements

But there is a final statement already. Does any one knows what to do? Thanks
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your first "try" must be followed by a "catch" or "finally" and it is not. Check your {}'s.

Formatted, the code looks like this:


[ November 18, 2005: Message edited by: Scott Selikoff ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!