RuntimeException RuntimeException RuntimeException RuntimeException Class

Definition

RuntimeException is the base class for exceptions likely to occur while a Monad command is running.

public ref class RuntimeException : SystemException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class RuntimeException : SystemException, System.Management.Automation.IContainsErrorRecord
type RuntimeException = class
    inherit SystemException
    interface IContainsErrorRecord
Public Class RuntimeException
Inherits SystemException
Implements IContainsErrorRecord
Inheritance
RuntimeExceptionRuntimeExceptionRuntimeExceptionRuntimeException
Derived
Attributes
Implements

Remarks

Monad scripts can trap RuntimeException using the

"trap (exceptionclass) {handler}" script construct.

Instances of this exception class are usually generated by the

Monad Engine. It is unusual for code outside the Monad Engine

to create an instance of this class.

Constructors

RuntimeException() RuntimeException() RuntimeException() RuntimeException()

Initializes a new instance of the RuntimeException class.

RuntimeException(String) RuntimeException(String) RuntimeException(String) RuntimeException(String)

Initializes a new instance of the RuntimeException class.

RuntimeException(SerializationInfo, StreamingContext) RuntimeException(SerializationInfo, StreamingContext) RuntimeException(SerializationInfo, StreamingContext) RuntimeException(SerializationInfo, StreamingContext)

Initializes a new instance of the RuntimeException class using data serialized via ISerializable

RuntimeException(String, Exception) RuntimeException(String, Exception) RuntimeException(String, Exception) RuntimeException(String, Exception)

Initializes a new instance of the RuntimeException class.

RuntimeException(String, Exception, ErrorRecord) RuntimeException(String, Exception, ErrorRecord) RuntimeException(String, Exception, ErrorRecord) RuntimeException(String, Exception, ErrorRecord)

Initializes a new instance of the RuntimeException class starting with an already populated error record.

Properties

ErrorRecord ErrorRecord ErrorRecord ErrorRecord

Additional information about the error

WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to