Browse Source
- converted Exception template to VB git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@6073 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
2 changed files with 119 additions and 0 deletions
@ -0,0 +1,56 @@
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0"?> |
||||
<Template author="Siegfried Pammer" version="1.0.0"> |
||||
|
||||
<Config |
||||
name = "${res:Templates.File.Exception.Name}" |
||||
icon = "VBNet.File.NewClass" |
||||
category = "VB" |
||||
defaultname = "Exception.vb" |
||||
language = "VBNET"/> |
||||
|
||||
<Description>${res:Templates.File.Exception.Description}</Description> |
||||
|
||||
<!-- |
||||
Special new file templates: |
||||
${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension |
||||
${FullName} -> Full generated path name |
||||
${FileName} -> File name with extension |
||||
${FileNameWithoutExtension} -> File name without extension |
||||
${Extension} -> Extension in the form ".cs" |
||||
${Path} -> Full path of the file |
||||
--> |
||||
|
||||
<Files> |
||||
<File name="${FullName}" language="VBNET"><![CDATA[${StandardHeader.VBNET} |
||||
Imports System |
||||
Imports System.Runtime.Serialization |
||||
|
||||
Namespace ${StandardNamespace} |
||||
''' <summary> |
||||
''' Desctiption of ${ClassName}. |
||||
''' </summary> |
||||
Public Class ${ClassName} |
||||
Inherits Exception |
||||
Implements ISerializable |
||||
|
||||
Public Sub New() |
||||
End Sub |
||||
|
||||
Public Sub New(message As String) |
||||
MyBase.New(message) |
||||
End Sub |
||||
|
||||
Public Sub New(message As String, innerException As Exception) |
||||
MyBase.New(message, innerException) |
||||
End Sub |
||||
|
||||
' This constructor is needed for serialization. |
||||
Protected Sub New(info As SerializationInfo, context As StreamingContext) |
||||
MyBase.New(info, context) |
||||
End Sub |
||||
End Class |
||||
End Namespace]]></File> |
||||
</Files> |
||||
|
||||
<AdditionalOptions/> |
||||
</Template> |
Loading…
Reference in new issue