Repository: incubator-reef Updated Branches: refs/heads/master 3120e6455 -> 9d67b8b13
[REEF-681] Remove Org.Apache.REEF.Common.FailedRuntime JIRA: [REEF-681](https://issues.apache.org/jira/browse/REEF-681) Pull Request Closes #460 Project: http://git-wip-us.apache.org/repos/asf/incubator-reef/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-reef/commit/9d67b8b1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-reef/tree/9d67b8b1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-reef/diff/9d67b8b1 Branch: refs/heads/master Commit: 9d67b8b13d98008d5cfe5fa9e8b2a857ad1b8a17 Parents: 3120e64 Author: Markus Weimer <wei...@apache.org> Authored: Thu Sep 3 10:52:59 2015 -0700 Committer: Mariia Mykhailova <mar...@apache.org> Committed: Thu Sep 3 14:35:40 2015 -0700 ---------------------------------------------------------------------- lang/cs/Org.Apache.REEF.Common/FailedRuntime.cs | 49 -------------------- .../Org.Apache.REEF.Common.csproj | 1 - 2 files changed, 50 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/9d67b8b1/lang/cs/Org.Apache.REEF.Common/FailedRuntime.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Common/FailedRuntime.cs b/lang/cs/Org.Apache.REEF.Common/FailedRuntime.cs deleted file mode 100644 index 0bc5203..0000000 --- a/lang/cs/Org.Apache.REEF.Common/FailedRuntime.cs +++ /dev/null @@ -1,49 +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.Common.Api; -using Org.Apache.REEF.Common.Protobuf.ReefProtocol; -using Org.Apache.REEF.Utilities; - -namespace Org.Apache.REEF.Common -{ - public class FailedRuntime : AbstractFailure - { - public FailedRuntime(RuntimeErrorProto error) - : base(error.identifier, error.message, null, GetException(error), error.exception) - { - } - - /// <summary> - /// Get the exception from error - /// </summary> - /// <param name="error"></param> - /// <returns>excetpiont from error</returns> - private static Exception GetException(RuntimeErrorProto error) - { - byte[] data = error.exception; - if (data != null) - { - return new InvalidOperationException(ByteUtilities.ByteArrarysToString(error.exception)); - } - return null; - } - } -} http://git-wip-us.apache.org/repos/asf/incubator-reef/blob/9d67b8b1/lang/cs/Org.Apache.REEF.Common/Org.Apache.REEF.Common.csproj ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Common/Org.Apache.REEF.Common.csproj b/lang/cs/Org.Apache.REEF.Common/Org.Apache.REEF.Common.csproj index c3d5e1f..5a2a7d6 100644 --- a/lang/cs/Org.Apache.REEF.Common/Org.Apache.REEF.Common.csproj +++ b/lang/cs/Org.Apache.REEF.Common/Org.Apache.REEF.Common.csproj @@ -87,7 +87,6 @@ under the License. <Compile Include="Events\IContextStop.cs" /> <Compile Include="Exceptions\EvaluatorException.cs" /> <Compile Include="Exceptions\JobException.cs" /> - <Compile Include="FailedRuntime.cs" /> <Compile Include="Files\PathUtilities.cs" /> <Compile Include="IContextAndTaskSubmittable.cs" /> <Compile Include="IContextSubmittable.cs" />