SceneStackException

Thrown when the scene activation stack would overflow (depth > SceneStack.MaxDepth = 50) or when an internal invariant is violated (e.g. popping an empty stack). Signals a scripting bug — usually a runaway EnterScene chain without a matching CompleteScene.

public class SceneStackException : BonsaiException

Inheritance System.ObjectSystem.ExceptionBonsaiException → SceneStackException

Constructors

SceneStackException(string)

Constructs a SceneStackException with a message describing the violation.

public SceneStackException(string message);
Parameters

message System.String

Human-readable description of the stack violation.

Inherited Methods

MemberSource
GetBaseException()inherited from Exception
GetObjectData(Runtime.Serialization.SerializationInfo, Runtime.Serialization.StreamingContext)inherited from Exception
GetType()inherited from Exception
ToString()inherited from Exception

Inherited Properties

MemberSource
Datainherited from Exception
HelpLinkinherited from Exception
HResultinherited from Exception
InnerExceptioninherited from Exception
Messageinherited from Exception
Sourceinherited from Exception
StackTraceinherited from Exception
TargetSiteinherited from Exception

Inherited Events

MemberSource
SerializeObjectStateinherited from Exception
Docs last synced: 2026-07-18
Screenshot viewer