~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/lib/stetic/libstetic/GladeException.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
using System;
2
 
 
3
 
namespace Stetic {
4
 
 
5
 
        public class GladeException : ApplicationException {
6
 
 
7
 
                public GladeException (string message) : base (message) { }
8
 
 
9
 
                public GladeException (string message, string className) :
10
 
                        this (message + " (class " + className + ")")
11
 
                {
12
 
                        this.className = className;
13
 
                }
14
 
 
15
 
                public GladeException (string message, string className,
16
 
                                       bool childprop, string propName) :
17
 
                        this (message + " (class " + className + ", " + (childprop ? "child " : "") + "property " + propName + ")")
18
 
                {
19
 
                        this.childprop = childprop;
20
 
                        this.propName = propName;
21
 
                }
22
 
 
23
 
                public GladeException (string message, string className,
24
 
                                       bool childprop, string propName, string propVal) :
25
 
                        this (message + " (class " + className + ", " + (childprop ? "child " : "") + "property " + propName + ", value " + propVal + ")")
26
 
                {
27
 
                        this.childprop = childprop;
28
 
                        this.propName = propName;
29
 
                        this.propVal = propVal;
30
 
                }
31
 
 
32
 
                string className, propName, propVal;
33
 
                bool childprop;
34
 
 
35
 
                public string ClassName {
36
 
                        get {
37
 
                                return className;
38
 
                        }
39
 
                }
40
 
 
41
 
                public bool ChildProp {
42
 
                        get {
43
 
                                return childprop;
44
 
                        }
45
 
                }
46
 
 
47
 
                public string PropName {
48
 
                        get {
49
 
                                return propName;
50
 
                        }
51
 
                }
52
 
 
53
 
                public string PropVal {
54
 
                        get {
55
 
                                return propVal;
56
 
                        }
57
 
                }
58
 
        }
59
 
}