Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / simulator / java / sdk / src / org / oic / simulator / OperationInProgressException.java
index c9127b5..20086e7 100644 (file)
@@ -22,7 +22,29 @@ package org.oic.simulator;
  */
 @SuppressWarnings("serial")
 public class OperationInProgressException extends SimulatorException {
-    public OperationInProgressException(int errorCode, String errMessage) {
-        super(errorCode, errMessage);
+
+    /**
+     * Constructs {@link OperationInProgressException} with the given error
+     * message.
+     *
+     * @param message
+     *            Error description.
+     */
+    public OperationInProgressException(String message) {
+        super(SimulatorResult.SIMULATOR_OPERATION_IN_PROGRESS, message);
+    }
+
+    /**
+     * Constructs {@link OperationInProgressException} with the given error code
+     * and description.
+     *
+     * @param code
+     *            {@link SimulatorResult} enum constant representing the error
+     *            code.
+     * @param message
+     *            Error description.
+     */
+    public OperationInProgressException(SimulatorResult code, String message) {
+        super(code, message);
     }
 }