[Overview][Types][Classes][Procedures and functions] | Reference for unit 'pLua' (#pLua)

# plua_spliterrormessage

## Declaration

Source position: plua.pas line 42

`procedure plua_spliterrormessage(`
`const ErrMsg: String;`
`out Title: ansistring;`
`out Line: Integer;`
`out Msg: ansistring`
`);`

## Arguments

`ErrMsg` |  | Input parameter, you should pass in the error message as it appears in Lua.
`Title` |  | Output parameter that contains the title of the error message.
`Line` |  | Output parameter that contains the line (in Lua) where the error message occured.
`Msg` |  | Output parameter that contains the error message.

## Description

Takes a Lua exception string and breaks it into its appropriate parts.
NOTE: If you catch a LuaException yourself this method may be of use, if you are using the TLua object from LuaWrapper then use the appropriate event handler instead.