FeResPost Web Site                     FeResPost Online User Manual

I.6.12 Exceptions

When something wrong happens, FeResPost raises an exception with a message providing some information about the problem. Exception information can be displayed, for example, by the following code:

    begin
        db.readBdf("unit_xyz_V1.bdf",["../../MODEL/MESH/"],"bdf",{},true)
    rescue Exception => x then
        printf("\n\nMaybe you should modify the two first include statements in main file!\n")
        printf("**********************************************************************\n\n")

        printf("We have an exception with the following information:\n\n")
        puts x.message
    end

Method “getLastErrorMessage” of the “Post” module retrieves the message associated with the last exception raised by FeResPost.