MATLAB BUILDER JA 2 Betriebsanweisung Seite 70

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 292
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 69
3 Programming
System.out.println("Exception in MATLAB call: " +
e.toString());
return new double[0];
}
/* Catches all other exceptions */
catch (Exception e)
{
System.out.println("Exception: " + e.toString());
return new double[0];
}
finally
{
MWArray.disposeArray(y);
if (cls != null)
cls.dispose();
}
}
The order of the catch clauses here is important. B ecause MWException is a
subclass of
Exception,thecatch clause for MWException must occur before
the
catch clause for Exception. If the orde r is reversed, the MWException
catch
clause wil l never execute.
3-24
Seitenansicht 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 291 292

Kommentare zu diesen Handbüchern

Keine Kommentare