Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RuntimeException Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as a base class for Windows PowerShell exceptions that might occur while a command is running.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Exception
    System.SystemException
      System.Management.Automation.RuntimeException
        Microsoft.PowerShell.Commands.RestartComputerTimeoutException
        System.Management.Automation.ActionPreferenceStopException
        System.Management.Automation.ApplicationFailedException
        System.Management.Automation.CmdletInvocationException
        System.Management.Automation.CommandNotFoundException
        System.Management.Automation.ExtendedTypeSystemException
        System.Management.Automation.Host.HostException
        System.Management.Automation.MetadataException
        System.Management.Automation.ParameterBindingException
        System.Management.Automation.ParseException
        System.Management.Automation.PipelineClosedException
        System.Management.Automation.PipelineStoppedException
        System.Management.Automation.ProviderInvocationException
        System.Management.Automation.PSSecurityException
        System.Management.Automation.RedirectedException
        System.Management.Automation.RemoteException
        System.Management.Automation.Remoting.PSDirectException
        System.Management.Automation.Remoting.PSRemotingDataStructureException
        System.Management.Automation.Remoting.PSRemotingTransportException
        System.Management.Automation.Runspaces.FormatTableLoadException
        System.Management.Automation.Runspaces.PSSnapInException
        System.Management.Automation.Runspaces.RunspaceOpenModuleLoadException
        System.Management.Automation.Runspaces.TypeTableLoadException
        System.Management.Automation.ScriptBlockToPowerShellNotSupportedException
        System.Management.Automation.ScriptRequiresException
        System.Management.Automation.SessionStateException
        System.Management.Automation.WildcardPatternException

[SerializableAttribute]
public class RuntimeException : SystemException, IContainsErrorRecord

NameDescription
System_CAPS_pubmethodRuntimeException()

Initializes a new instance of the RuntimeException class that is empty.

System_CAPS_protmethodRuntimeException(SerializationInfo, StreamingContext)

Initializes a new instance of the RuntimeException class that contains information that is read from the provided serialization information.

System_CAPS_pubmethodRuntimeException(String)

Initializes a new instance of the RuntimeException class that contains an exception message that describes the error condition.

System_CAPS_pubmethodRuntimeException(String, Exception)

Initializes a new instance of the RuntimeException class that contains an exception message and the inner exception that caused this exception to be thrown.

System_CAPS_pubmethodRuntimeException(String, Exception, ErrorRecord)

Initializes a new instance of the RuntimeException class that contains an exception message, the inner exception that caused this exception to be thrown, and an already populated error record. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyErrorRecord

Gets the error record associated with the exception.

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

System_CAPS_pubpropertyWasThrownFromThrowStatement

Gets or sets a value that indicates whether the exception was thrown from a throw statement.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

Provides serialization functionality for the ISerializable interface.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: