mirror of
https://github.com/LucasVbr/interpreteur-lir.git
synced 2026-07-09 06:58:05 +00:00
Base code pour itération 2
ExecutionException + correction bug mot clef full maj
This commit is contained in:
@@ -135,7 +135,7 @@ public class Analyseur {
|
|||||||
Class<?> aChercher;
|
Class<?> aChercher;
|
||||||
try {
|
try {
|
||||||
aChercher = Class.forName(CLASS_PATH_CMD + motCle);
|
aChercher = Class.forName(CLASS_PATH_CMD + motCle);
|
||||||
} catch(ClassNotFoundException nonCmd) {
|
} catch(ClassNotFoundException | NoClassDefFoundError nonCmd) {
|
||||||
try {
|
try {
|
||||||
aChercher = Class.forName(CLASS_PATH_INST + motCle);
|
aChercher = Class.forName(CLASS_PATH_INST + motCle);
|
||||||
} catch(ClassNotFoundException nonInst) {
|
} catch(ClassNotFoundException nonInst) {
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
/**
|
||||||
|
* ExecutionException.java 12 mai 2021
|
||||||
|
* IUT Rodez info1 2020-2021, pas de copyright, aucun droit
|
||||||
|
*/
|
||||||
|
package interpreteurlir;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exception levée lors d'une erreur dans l'exécution d'un programme
|
||||||
|
* dans l'interpréteurLIR.
|
||||||
|
* (Ex: division par 0)
|
||||||
|
* @author Nicolas Caminade
|
||||||
|
* @author Sylvan Courtiol
|
||||||
|
* @author Pierre Debas
|
||||||
|
* @author Heïa Dexter
|
||||||
|
* @author Lucas Vabre
|
||||||
|
*/
|
||||||
|
public class ExecutionException extends RuntimeException {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialise cette exception avec un message.
|
||||||
|
* @param message explication succincte de cette exception
|
||||||
|
*/
|
||||||
|
public ExecutionException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user