Script Exception

This exception is thrown when script has a parse error

Class Methods

The following methods can be invoked on instances of this class.

setPosition(int m_iPosition)

Sets the character position of the parse error

getPosition()

Returns the character position of the parse error

setExpressionString(mixed strExpression)

getExpressionString()

setFormItem(SSHTMLFormItem pItem)

Sets the form item which threw this exception

setDataColumn(mixed strDataColumn)

Sets the datacolumn which threw this exception

getFormItem()

Returns the form item which threw this exception

getDataColumn()

Returns the datacolumn which threw this exception

__construct(mixed message, mixed code, \Exception previous)

Constructor

setTitle(string strTitle)

Sets the title of the exception

getTitle()

Returns the title

setDescription(string strDescription)

Sets the description

getDescription()

Returns the description

addDebugInfo(mixed strKey, string strValue)

Adds debug info

setDebugInfo(mixed arrDebugInfo)

Sets an array of the added debug info

getDebugInfo()

Returns an array of the added debug info

addSolution(string strSolution)

Adds a solution as to how to fix the problem

getSolutions()

Returns an array of all the possible solutions

setDeveloperNotification(bool bDeveloperNofication)

Sets whether the developer should be notified of the error

getDeveloperNotification()

Returns whether the developer should be notified of the error

setRewindOffset(int iOffset)

Rewinds the call stack by $iOffset when the error is displayed

getRewindOffset()

Returns the current rewind offset

getConstructorTrace()

Returns the back trace

__clone()

__wakeup()

getMessage()

getCode()

getFile()

getLine()

getTrace()

getPrevious()

getTraceAsString()

__toString()