> For the complete documentation index, see [llms.txt](https://docs.sansar.com/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/coroutineexception.md).

# CoroutineException

### CoroutineException Class

An exception occurred relating to Coroutine execution.

### Syntax

public class **CoroutineException** : [Exception](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Exception)

### Remarks

This exception is thrown when a coroutine method is called outside of a coroutine context (i.e. in a method that was not started with [ScriptBase.StartCoroutine(Action)](https://help.sansar.com/hc/en-us/articles/115003549048#M:Sansar.Script.ScriptBase.StartCoroutine\(System.Action\))) or attempting to use the context of another script.

### Requirements

**Namespace:** Sansar.Script\
**Assembly:** Sansar.Script (in Sansar.Script.dll)\
**Assembly Versions:** 1.0.0.0

### Members

See Also: Inherited members from [Exception](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.Exception).

### Member Details

***
