Try, Catch Errors

About Monkey 2 Forums Monkey 2 Programming Help Try, Catch Errors

Tagged: , , ,

This topic contains 4 replies, has 3 voices, and was last updated by  nobuyuki 1 year, 5 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6466

    APC
    Participant

    Is it possible  I implement Try, Catch for generic errors without writing custom exception classes?

    If an image is not loaded and the image object is null the program will crash.

    Can I Extend More that one Class and catch “Exception”?

    #6516

    cocon
    Participant

     

    Perhaps one generic exception could be added in Monkey by design.

    When I run the code I get “***** Uncaught Monkey 2 Throwable *****”, do you know how can I see the message on the output log?

    #6534

    APC
    Participant

    cocon,

     

    Like this below:

    It works in any platform.

    #6544

    cocon
    Participant

    Good one.

    #6810

    nobuyuki
    Participant

    I don’t know if mx2 does this, but every monkey uncaught exception have the same error.  It would be nice if it was able to spit out the type of exception it was if it came unexpectedly…

    And yeah, a base type with at least an ID and message fields would’ve been ideal for this!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.