-
Notifications
You must be signed in to change notification settings - Fork 0
UtilsError
Starlon edited this page Nov 30, 2011
·
1 revision
<tr>
<td class="name" nowrap><a href="#LibScriptableError:Del">LibScriptableError:Del</a> (err)</td>
<td class="summary">Delete a LibScriptableError object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#LibScriptableError:New">LibScriptableError:New</a> (name, errorLevel, handler)</td>
<td class="summary">Create a new LibScriptableError object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#LibScriptableError:Print">LibScriptableError:Print</a> (text, errorLevel)</td>
<td class="summary">Print something </td>
</tr>
- LibScriptableError:Del (err)
-
Delete a LibScriptableError object
:Del() Nothing
<li> err: </li> - LibScriptableError:New (name, errorLevel, handler)
-
Create a new LibScriptableError object
:New(name, [handler]) A new LibScriptableError object
<li> name: Give your error object a name </li> <li> errorLevel: Critical level for this object. This is optional. Default is 2. </li> <li> handler: An optional handler function, otherwise we use ChatFrame1 for printing </li> - LibScriptableError:Print (text, errorLevel)
-
Print something
LibError:Print(text, errorLevel) Nothing
<li> text: The text to print. </li> <li> errorLevel: The critical threshhold for this message </li>