MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 70

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag