Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorCore/Utils/Dom/DomException.cs @ 13346

Last change on this file since 13346 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 927 bytes
Line 
1using System;
2
3namespace SharpVectors.Dom
4{
5  [Serializable]
6  public class DomException : Exception
7  {
8    /*public DomException() : this(DomExceptionType.SVGSHARP_UNDEFINED_ERROR, "Unknown error")
9    {
10    }*/
11
12    protected DomException(string msg, Exception innerException) : base(msg, innerException)
13    {
14    }
15   
16    public DomException(DomExceptionType code) : this(code, String.Empty)
17    {
18    }
19   
20    public DomException(DomExceptionType code, string msg) : this(code, msg, null)
21    {
22    }
23
24    public DomException(DomExceptionType code, string msg, Exception innerException) : base(msg, innerException)
25    {
26      this.code = code;
27    }
28
29    protected DomException ( System.Runtime.Serialization.SerializationInfo info , System.Runtime.Serialization.StreamingContext context ) : base(info, context)
30    {
31    }
32
33    private DomExceptionType code;
34    public DomExceptionType Code
35    {
36      get{return code;}
37    }
38  }
39}
Note: See TracBrowser for help on using the repository browser.