~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to data/templates/file/VB/VB.Exception.xft

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<Template author="Siegfried Pammer" version="1.0.0">
 
3
        
 
4
        <Config
 
5
                  name        = "${res:Templates.File.Exception.Name}"
 
6
                  icon        = "VBNet.File.NewClass"
 
7
                  category    = "VB"
 
8
                  defaultname = "Exception.vb"
 
9
                  language    = "VBNet"/>
 
10
         
 
11
        <Description>${res:Templates.File.Exception.Description}</Description>
 
12
        
 
13
        <!-- 
 
14
        Special new file templates:
 
15
                ${StandardNamespace}        -> Standardnamespace of the current project or FileNameWithoutExtension
 
16
                ${FullName}                 -> Full generated path name
 
17
                ${FileName}                 -> File name with extension
 
18
                ${FileNameWithoutExtension} -> File name without extension
 
19
                ${Extension}                -> Extension in the form ".vb"
 
20
                ${Path}                     -> Full path of the file
 
21
         -->
 
22
        <!--<Properties>
 
23
                <Property
 
24
                        name          = "IsSealed"
 
25
                        localizedName = "${res:Templates.File.Properties.IsSealed}"
 
26
                        type          = "System.Boolean"
 
27
                        defaultValue  = "False"
 
28
                        category      = "${res:Templates.File.Properties.ContextCategory}"
 
29
                        description   = "${res:Templates.File.Properties.IsSealed.Description}"
 
30
                />
 
31
        </Properties>-->
 
32
        
 
33
        <Files>
 
34
                <File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
 
35
Imports System
 
36
Imports System.Runtime.Serialization
 
37
 
 
38
Namespace ${StandardNamespace}
 
39
        ''' <summary>
 
40
        ''' Desctiption of ${ClassName}.
 
41
        ''' </summary>
 
42
        Public Class ${ClassName}
 
43
                Inherits Exception
 
44
                Implements ISerializable
 
45
 
 
46
                Public Sub New()
 
47
                End Sub
 
48
 
 
49
                Public Sub New(message As String)
 
50
                        MyBase.New(message)
 
51
                End Sub
 
52
 
 
53
                Public Sub New(message As String, innerException As Exception)
 
54
                        MyBase.New(message, innerException)
 
55
                End Sub
 
56
 
 
57
                ' This constructor is needed for serialization.
 
58
                Protected Sub New(info As SerializationInfo, context As StreamingContext)
 
59
                        MyBase.New(info, context)
 
60
                End Sub
 
61
        End Class
 
62
End Namespace]]></File>
 
63
        </Files>
 
64
        
 
65
        <AdditionalOptions/>
 
66
</Template>