Not a developer? Go to

Plugin and Theme Directory

Exception v1

Posted June 14, 2003, in Utilities.


Sometimes re-building a page may fail for various reasons at which time MovableType reports an error. The tags in this plugin allow you to handle errors that occur during the building stage of your pages.

The tags are modeled after the try-catch error handling approach common to languages such as Java and C++. You would enclose the part of template where you want to handle errors into MTExceptionTry tags. If an error occurs while building the page, the MTExceptionTry simply returns an empty string, instead of causing an error. You can optionally specify an MTExceptionCatch block inside your MTExceptionTry block. If an error occurs, the contents of the catch block are displayed.