Skip to content

Commit

Permalink
Merge pull request #2372 from lorthirk/fix-kapuaIllegalArgumentExcInit
Browse files Browse the repository at this point in the history
Fix initialization in KapuaIllegalArgumentException
  • Loading branch information
Claudio Mezzasalma committed Feb 8, 2019
2 parents 70ba4f8 + 749f2ce commit 8b80360
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -32,9 +32,6 @@ public class KapuaIllegalArgumentException extends KapuaException {
*/
public KapuaIllegalArgumentException(String argName, String argValue) {
this(KapuaErrorCodes.ILLEGAL_ARGUMENT, argName, argValue);

this.argumentName = argName;
this.argumentValue = argValue;
}

/**
Expand All @@ -46,6 +43,9 @@ public KapuaIllegalArgumentException(String argName, String argValue) {
*/
protected KapuaIllegalArgumentException(KapuaErrorCodes code, String argName, String argValue) {
super(code, argName, argValue);

this.argumentName = argName;
this.argumentValue = argValue;
}

public String getArgumentName() {
Expand Down

0 comments on commit 8b80360

Please sign in to comment.