Freigeben über


JobFailedException Constructors

Definition

Overloads

JobFailedException()

Creates a new JobFailedException.

JobFailedException(String)

Creates a new JobFailedException.

JobFailedException(Exception, ScriptExtent)

Creates a new JobFailedException.

JobFailedException(SerializationInfo, StreamingContext)
Obsolete.

Class constructor.

JobFailedException(String, Exception)

Creates a new JobFailedException.

JobFailedException()

Creates a new JobFailedException.

public:
 JobFailedException();
public:
 JobFailedException();
 JobFailedException();
public JobFailedException ();
Public Sub New ()

Applies to

JobFailedException(String)

Creates a new JobFailedException.

public:
 JobFailedException(System::String ^ message);
public:
 JobFailedException(Platform::String ^ message);
 JobFailedException(std::wstring const & message);
public JobFailedException (string message);
new System.Management.Automation.JobFailedException : string -> System.Management.Automation.JobFailedException
Public Sub New (message As String)

Parameters

message
String

The message of the exception.

Applies to

JobFailedException(Exception, ScriptExtent)

Creates a new JobFailedException.

public:
 JobFailedException(Exception ^ innerException, System::Management::Automation::Language::ScriptExtent ^ displayScriptPosition);
public JobFailedException (Exception innerException, System.Management.Automation.Language.ScriptExtent displayScriptPosition);
new System.Management.Automation.JobFailedException : Exception * System.Management.Automation.Language.ScriptExtent -> System.Management.Automation.JobFailedException
Public Sub New (innerException As Exception, displayScriptPosition As ScriptExtent)

Parameters

innerException
Exception

The actual exception that caused this error.

displayScriptPosition
ScriptExtent

A ScriptExtent that describes where this error originated from.

Applies to

JobFailedException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Class constructor.

protected:
 JobFailedException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected JobFailedException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected JobFailedException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Management.Automation.JobFailedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.JobFailedException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.JobFailedException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.JobFailedException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

Serialization info.

streamingContext
StreamingContext

Streaming context.

Attributes

Applies to

JobFailedException(String, Exception)

Creates a new JobFailedException.

public:
 JobFailedException(System::String ^ message, Exception ^ innerException);
public JobFailedException (string message, Exception innerException);
new System.Management.Automation.JobFailedException : string * Exception -> System.Management.Automation.JobFailedException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message of the exception.

innerException
Exception

The actual exception that caused this error.

Applies to