Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorModel/SvgException.cs @ 13005

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

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

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