Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11882


Ignore:
Timestamp:
02/04/15 10:39:33 (9 years ago)
Author:
jkarder
Message:

#2303: added more specific CompilationException

Location:
trunk/sources
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting.Views/3.3/ScriptView.cs

    r11836 r11882  
    118118        UpdateInfoTextLabel(CompilationSucceededMessage, Color.DarkGreen);
    119119        return true;
    120       } catch (InvalidOperationException) {
     120      } catch (CompilationException) {
    121121        if (Content.CompileErrors.HasErrors) {
    122122          outputTextBox.AppendText(CompilationFailedMessage);
  • trunk/sources/HeuristicLab.Scripting/3.3/HeuristicLab.Scripting-3.3.csproj

    r11788 r11882  
    9191  </ItemGroup>
    9292  <ItemGroup>
     93    <Compile Include="CompilationException.cs" />
    9394    <Compile Include="Scripts\CSharp\CSharpScript.cs" />
    9495    <Compile Include="Scripts\Templates\CSharpScriptTemplate.cs" />
  • trunk/sources/HeuristicLab.Scripting/3.3/Script.cs

    r11787 r11882  
    127127            .AppendLine(error.ErrorText);
    128128        }
    129         throw new InvalidOperationException(string.Format("Compilation of \"{0}\" failed:{1}{2}",
     129        throw new CompilationException(string.Format("Compilation of \"{0}\" failed:{1}{2}",
    130130          Name, Environment.NewLine, sb.ToString()));
    131131      } else {
Note: See TracChangeset for help on using the changeset viewer.