ScriptCallDepthException ScriptCallDepthException ScriptCallDepthException Class

Definition

ScriptCallDepthException occurs when the number of session state objects of this type in this scope exceeds the configured maximum.

public class ScriptCallDepthException : SystemException, System.Management.Automation.IContainsErrorRecord
type ScriptCallDepthException = class
    inherit SystemException
    interface IContainsErrorRecord
Public Class ScriptCallDepthException
Inherits SystemException
Implements IContainsErrorRecord
Inheritance
ScriptCallDepthExceptionScriptCallDepthExceptionScriptCallDepthException
Implements

Remarks

When one Monad command or script calls another, this creates an additional
scope.  Some script expressions also create a scope.  Monad imposes a maximum
call depth to prevent stack overflows.  The maximum call depth is configurable
but generally high enough that scripts which are not deeply recursive
should not have a problem.

Constructors

ScriptCallDepthException() ScriptCallDepthException() ScriptCallDepthException()

Instantiates a new instance of the ScriptCallDepthException class

ScriptCallDepthException(String) ScriptCallDepthException(String) ScriptCallDepthException(String)

Instantiates a new instance of the ScriptCallDepthException class

ScriptCallDepthException(SerializationInfo, StreamingContext) ScriptCallDepthException(SerializationInfo, StreamingContext) ScriptCallDepthException(SerializationInfo, StreamingContext)

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

ScriptCallDepthException(String, Exception) ScriptCallDepthException(String, Exception) ScriptCallDepthException(String, Exception)

Instantiates a new instance of the ScriptCallDepthException class

Properties

CallDepth CallDepth CallDepth

Always 0 - depth is not tracked as there is no hard coded maximum.

ErrorRecord ErrorRecord ErrorRecord

see IContainsErrorRecord

Methods

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

Serializer for ISerializable

Applies to