Commit a517483b authored by Tobias Wich's avatar Tobias Wich
Browse files

Add process minor error code to mobile result class

parent 1b2f8fd9
...@@ -138,6 +138,9 @@ public class ActivationController { ...@@ -138,6 +138,9 @@ public class ActivationController {
default: default:
activationResult = new ActivationResult(INTERNAL_ERROR, result.getResultMessage()); activationResult = new ActivationResult(INTERNAL_ERROR, result.getResultMessage());
} }
activationResult.setProcessMinor(result.getAuxResultData().get(AuxDataKeys.MINOR_PROCESS_RESULT));
return activationResult; return activationResult;
} }
......
...@@ -32,6 +32,7 @@ public class ActivationResult { ...@@ -32,6 +32,7 @@ public class ActivationResult {
private final String redirectUrl; private final String redirectUrl;
private final ActivationResultCode resultCode; private final ActivationResultCode resultCode;
private final String errorMessage; private final String errorMessage;
private String processMinor;
public ActivationResult(ActivationResultCode resultCode) { public ActivationResult(ActivationResultCode resultCode) {
this(null, resultCode, null); this(null, resultCode, null);
...@@ -51,6 +52,10 @@ public class ActivationResult { ...@@ -51,6 +52,10 @@ public class ActivationResult {
this.errorMessage = errorMessage; this.errorMessage = errorMessage;
} }
public void setProcessMinor(String processMinor) {
this.processMinor = processMinor;
}
public String getRedirectUrl() { public String getRedirectUrl() {
return redirectUrl; return redirectUrl;
} }
...@@ -63,4 +68,14 @@ public class ActivationResult { ...@@ -63,4 +68,14 @@ public class ActivationResult {
return errorMessage; return errorMessage;
} }
/**
* If present, represents the minor error code of the error leading to the termination of the process.
*
* @see ECardConstants.Minor;
* @return The minor result code or {@code null} if not present.
*/
public String getProcessResultMinor() {
return processMinor;
}
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment