Skip to content

Commit

Permalink
fix: ArcException message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Oct 4, 2023
1 parent 07d8e4d commit cf096e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class ArcException extends Exception {
*/
private static final long serialVersionUID = -6127318245282541168L;

private ArcExceptionMessage error;

/**
* build a custom business exception
* @param error
Expand All @@ -22,6 +24,7 @@ public class ArcException extends Exception {
public ArcException(ArcExceptionMessage error, Object...parameters) {
super(error.formatException(parameters));
this.initCause(new Throwable(error.formatException(parameters)));
this.error = error;
}

/**
Expand All @@ -46,4 +49,10 @@ public ArcException logMessageException()
return this;
}

public ArcExceptionMessage getError() {
return error;
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ public enum ArcExceptionMessage {
GENERIC_BEAN_KEY_VALUE_FAILED("GenericBean keyValue : the set hasn't exactly 2 elements and cannot be mapped to key>value format"),
GENERIC_BEAN_DUPLICATE_KEY("GenericBean keyValue : duplicate key %s"),

SPRING_BEAN_PROPERTIES_NOTFOUND("Spring bean properties not found. Creating a blank singleton PropertiesHandler to be filled with right attributes.");
SPRING_BEAN_PROPERTIES_NOTFOUND("Spring bean properties not found. Creating a blank singleton PropertiesHandler to be filled with right attributes."),

GUI_FAMILLENORME_VARIABLE_NULL("Une variable a un nom null"),
GUI_FAMILLENORME_VARIABLE_NO_TARGET_TABLE("Vous avez oublié de spécifier les tables cibles pour votre variable"),
GUI_FAMILLENORME_VARIABLE_ALREADY_EXISTS("La variable existe déjà. Pour la modifier, passez par la ligne correspondante du tableau variable*table.\nAucune variable n'a été ajoutée.\n"),
GUI_EXPORT_TABLE_NOT_EXISTS("La table n'existe pas")

;

Expand Down

0 comments on commit cf096e4

Please sign in to comment.