FeResPost Web Site                     FeResPost Online User Manual

VIII.0.12 FeResPost exceptions

.NET assembly defines a “FrpExcept” class corresponding to all the exceptions raised by FeResPost. Exception management is similar to ruby, but also depends on the programming language. For example, with C#, the management of an exception may look like:

    try {
        NastranDb db=new NastranDb();
        db.Name="tmpDB1";
        //~ db.readBdf("../../MODEL/MAINS/unit_xyz.bdf");
        db.readBdf("../../MODEL/MAINS/brol.bdf");
    }
    catch (FrpExcept ex) {
        Console.WriteLine("\n\nGot an exception of type \"{0}\"\n",ex.GetType());
        Console.WriteLine("FeResPost error message is :\n\n{0}\n",ex.Message);
    }