[REEF-1678] Remove unused MaximumNumberOfEvaluatorFailuresExceededException
JIRA:
[REEF-1678](https://issues.apache.org/jira/browse/REEF-1678)
Pull request:
This closes #1191
diff --git a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs b/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
deleted file mode 100644
index df3c5ea..0000000
--- a/lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/MaximumNumberOfEvalutorFailuresExceededException.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-using System;
-using Org.Apache.REEF.Utilities.Logging;
-
-namespace Org.Apache.REEF.IMRU.OnREEF.Driver
-{
- /// <summary>
- /// Type of exception thrown when number of failed evaluators reach the
- /// maximum allowed limit.
- /// </summary>
- public sealed class MaximumNumberOfEvaluatorFailuresExceededException : Exception
- {
- private static readonly Logger Logger =
- Logger.GetLogger(typeof(MaximumNumberOfEvaluatorFailuresExceededException));
-
- /// <summary>
- /// Constructor for throwing exception when the number of evaluator failures reaches maximum limit.
- /// </summary>
- /// <param name="maximumAllowedEvaluatorFailures">maximum number of evaluators allowed to fail</param>
- public MaximumNumberOfEvaluatorFailuresExceededException(int maximumAllowedEvaluatorFailures)
- : base(CreateMessage(maximumAllowedEvaluatorFailures))
- {
- }
-
- private static string CreateMessage(int maximumAllowedEvaluatorFailures)
- {
- return string.Format("Exiting IMRU. Number of failed evaluators reach the maximum allowed limit of {0}",
- maximumAllowedEvaluatorFailures);
- }
- }
-}
diff --git a/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj b/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
index 86d7785..330f4a0 100644
--- a/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
+++ b/lang/cs/Org.Apache.REEF.IMRU/Org.Apache.REEF.IMRU.csproj
@@ -82,7 +82,6 @@
<Compile Include="OnREEF\Driver\IJobLifeCycleManager.cs" />
<Compile Include="OnREEF\Driver\JobCancelled.cs" />
<Compile Include="OnREEF\Driver\JobLifeCycleManager.cs" />
- <Compile Include="OnREEF\Driver\MaximumNumberOfEvalutorFailuresExceededException.cs" />
<Compile Include="OnREEF\Driver\IMRUSystemException.cs" />
<Compile Include="OnREEF\Driver\IMRUConstants.cs" />
<Compile Include="OnREEF\Driver\IMRUDriver.cs" />