Changeset 8060
- Timestamp:
- 06/20/12 10:33:10 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/MissingClientRegistrationException.cs
r8055 r8060 24 24 namespace HeuristicLab.Clients.OKB.RunCreation { 25 25 public class MissingClientRegistrationException : Exception { 26 public MissingClientRegistrationException() : base("To be able to store runs, you need to register your client first.") { } 26 public MissingClientRegistrationException() 27 : base("To be able to store runs automatically, you need to register your client first." + 28 Environment.NewLine + "To register your client, click on \"Services\" -> \"Access\" -> \"Client Information\".") { } 27 29 } 28 30 } -
trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs
r8055 r8060 200 200 runs = new RunCollection(); 201 201 storeRunsAutomatically = true; 202 CheckUserPermissions();203 202 RegisterRunsEvents(); 204 203 } … … 251 250 } 252 251 public void Start() { 252 CheckUserPermissions(); 253 253 if (!ClientInformation.Instance.ClientExists && storeRunsAutomatically) { 254 throw new Exception("To be able to store runs automatically, you need to register your client first.");254 throw new MissingClientRegistrationException(); 255 255 } 256 256 Algorithm.Start(); … … 405 405 runs.Add(okbRun); 406 406 if (StoreRunsAutomatically) { 407 try { okbRun.Store(); } 408 catch (Exception) { } 407 okbRun.Store(); 409 408 } 410 409 } else {
Note: See TracChangeset
for help on using the changeset viewer.