|
@@ -16,19 +16,17 @@
|
|
|
* limitations under the License.
|
|
|
*/
|
|
|
|
|
|
-package org.apache.hadoop.yarn.service;
|
|
|
+package org.apache.hadoop.service;
|
|
|
|
|
|
import org.apache.hadoop.classification.InterfaceAudience.Public;
|
|
|
import org.apache.hadoop.classification.InterfaceStability.Evolving;
|
|
|
-import org.apache.hadoop.yarn.exceptions.YarnException;
|
|
|
-import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
|
|
|
|
|
|
/**
|
|
|
* Exception that is raised on state change operations.
|
|
|
*/
|
|
|
@Public
|
|
|
@Evolving
|
|
|
-public class ServiceStateException extends YarnRuntimeException {
|
|
|
+public class ServiceStateException extends RuntimeException {
|
|
|
|
|
|
private static final long serialVersionUID = 1110000352259232646L;
|
|
|
|
|
@@ -46,9 +44,8 @@ public class ServiceStateException extends YarnRuntimeException {
|
|
|
|
|
|
/**
|
|
|
* Convert any exception into a {@link RuntimeException}.
|
|
|
- * If the caught exception already is of that type -including
|
|
|
- * a {@link YarnException} it is typecast to a {@link RuntimeException}
|
|
|
- * and returned.
|
|
|
+ * If the caught exception is already of that type, it is typecast to a
|
|
|
+ * {@link RuntimeException} and returned.
|
|
|
*
|
|
|
* All other exception types are wrapped in a new instance of
|
|
|
* ServiceStateException
|
|
@@ -65,9 +62,8 @@ public class ServiceStateException extends YarnRuntimeException {
|
|
|
|
|
|
/**
|
|
|
* Convert any exception into a {@link RuntimeException}.
|
|
|
- * If the caught exception already is of that type -including
|
|
|
- * a {@link YarnException} it is typecast to a {@link RuntimeException}
|
|
|
- * and returned.
|
|
|
+ * If the caught exception is already of that type, it is typecast to a
|
|
|
+ * {@link RuntimeException} and returned.
|
|
|
*
|
|
|
* All other exception types are wrapped in a new instance of
|
|
|
* ServiceStateException
|