RuntimeException RuntimeException RuntimeException Class

Definition

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

public class RuntimeException : SystemException, System.Management.Automation.IContainsErrorRecord
type RuntimeException = class
    inherit SystemException
    interface IContainsErrorRecord
Public Class RuntimeException
Inherits SystemException
Implements IContainsErrorRecord
Inheritance
RuntimeExceptionRuntimeExceptionRuntimeException
Derived
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()

Initializes a new instance of the RuntimeException class.

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

Initializes a new instance of the RuntimeException class.

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)

Initializes a new instance of the RuntimeException class.

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

Additional information about the error

StackTrace StackTrace StackTrace

Same as Object

WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement

Methods

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

Serializer for ISerializable

Applies to