BaseCodeGeneratorWithSite.CreateExceptionMessage Method
Create a message to display to the user, given an exception.
Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost.10.0 (in Microsoft.VisualStudio.TextTemplating.VSHost.10.0.dll)
Syntax
'Declaration
Protected Overridable Function CreateExceptionMessage ( _
exception As Exception _
) As String
protected virtual string CreateExceptionMessage(
Exception exception
)
protected:
virtual String^ CreateExceptionMessage(
Exception^ exception
)
abstract CreateExceptionMessage :
exception:Exception -> string
override CreateExceptionMessage :
exception:Exception -> string
protected function CreateExceptionMessage(
exception : Exception
) : String
Parameters
- exception
Type: System.Exception
Exception during template processing
Return Value
Type: System.String
Message to show to the user..
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.