Changeset 16897


Ignore:
Timestamp:
05/06/19 13:42:57 (3 weeks ago)
Author:
ddorfmei
Message:

#2931: Added log directory to additional exceptions caused by OR-Tools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/LinearSolver.cs

    r16891 r16897  
    174174
    175175        if (!solver.SetSolverSpecificParametersAsString(SolverSpecificParameters))
    176           throw new ArgumentException("Solver specific parameters could not be set.");
     176          throw new ArgumentException("Solver specific parameters could not be set. " +
     177            $"For details, see the log files in '{LogDirectory}'.");
    177178
    178179        resultStatus = (ResultStatus)solver.Solve(parameters);
     
    234235        solver = new Solver(Name, optimizationProblemType, libraryName ?? string.Empty);
    235236      } catch {
    236         throw new InvalidOperationException($"Could not create {optimizationProblemType}.");
     237        solver = null;
    237238      }
    238239
    239240      if (solver == null)
    240         throw new InvalidOperationException($"Could not create {optimizationProblemType}.");
     241        throw new InvalidOperationException($"Could not create {optimizationProblemType}. " +
     242          $"For details, see the log files in '{LogDirectory}'.");
    241243
    242244      solver.SuppressOutput();
Note: See TracChangeset for help on using the changeset viewer.