Table of Contents

Class ScriptCanceldException

Namespace
Loehnert.Lisrt.Scripting.Python
Assembly
Loehnert.Lisrt.Scripting.dll

A localizable exception for a stopped script.

[Serializable]
[Export(typeof(ITranslatableException))]
public class ScriptCanceldException : SystemException, ISerializable, _Exception, ITranslatableException, ITranslatableText, IHasMessageNumber
Inheritance
ScriptCanceldException
Implements
Inherited Members

Constructors

ScriptCanceldException()

Initializes a new instance of the ScriptCanceldException class.

public ScriptCanceldException()

ScriptCanceldException(Exception)

Initializes a new instance of the ScriptCanceldException class with a inner exception.

public ScriptCanceldException(Exception innerException)

Parameters

innerException Exception

Inner exception.

ScriptCanceldException(SerializationInfo, StreamingContext)

Initializes a new instance of the ScriptCanceldException class.

protected ScriptCanceldException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

ScriptCanceldException(string)

Initializes a new instance of the ScriptCanceldException class.

public ScriptCanceldException(string message)

Parameters

message string

The message that describes the error.

ScriptCanceldException(string, Exception)

Initializes a new instance of the ScriptCanceldException class.

public ScriptCanceldException(string message, Exception innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

Properties

Message

Gets the localized exception message.

public override string Message { get; }

Property Value

string

MessageNumber

Gets the message number.

public int MessageNumber { get; }

Property Value

int

Remarks

Equal with a ID.

Methods

Translate(CultureInfo)

Translates the text.

public string Translate(CultureInfo culture)

Parameters

culture CultureInfo

Culture for the returning message.

Returns

string

Translated message text.