MATLAB BUILDER JA 2 Guide de l'utilisateur Page 70

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 292
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 291 292

Commentaires sur ces manuels

Pas de commentaire