[Minor] added additional constructor to pass state and error msg
This commit is contained in:
parent
a82cb7ae39
commit
ae9a65393f
|
@ -37,6 +37,16 @@ public class ServiceResult implements Serializable {
|
||||||
this.state = state;
|
this.state = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param state
|
||||||
|
* @param message
|
||||||
|
*/
|
||||||
|
public ServiceResult(ServiceResultState state, String message) {
|
||||||
|
super();
|
||||||
|
this.state = state;
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param state
|
* @param state
|
||||||
* @param message
|
* @param message
|
||||||
|
|
Loading…
Reference in New Issue