[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /cmds/report_base.c</h2>
This is the base object for creating typo, bug, idea etc reporting
commands from.  You should set the error type of the
object in its create function.  The use_last_error flag should
be set for those error report types which will need to use the last
runtime error on the player object.<h3>Example</h3>
<pre>inherit "/cmds/report_base";

void create() {
   ::create();
   set_error_type("TYPO");
} /* create() */
</pre>
<h2>Inherits</h2>
This class inherits the following classes /cmds/bug_replies.c and <a href="cmds.base.c.shtml">/cmds/base.c</a><h2>Includes</h2>
This class includes the following files <a href="include.creator.h.shtml">/include/creator.h</a>, <a href="include.user_parser.h.shtml">/include/user_parser.h</a>, <a href="include.spells.h.shtml">/include/spells.h</a>, <a href="include.log.h.shtml">/include/log.h</a>, <a href="include.error_handler.h.shtml">/include/error_handler.h</a>, <a href="include.soul.h.shtml">/include/soul.h</a> and <a href="include.command.h.shtml">/include/command.h</a><h2>Class Index</h2>
<ul><li><a href="#class_errors">errors</a>
</ul><h2>Method index</h2>
<dl><ul>
<li><a href="#bug_misc">bug_misc</a>(string)<li><a href="#bug_special">bug_special</a>(string)<li><a href="#bug_spell_file">bug_spell_file</a>(string, string)<br/>
This entry point is used to erroring spells without specifically saying
which one.
<li><a href="#bug_web">bug_web</a>(string)<br/>
This entry point is used to erroring spells without specifically saying
which one.
<li><a href="#query_use_last_error">query_use_last_error</a>()<br/>
This method returns the currently set value of the last error flag.
<li><a href="#set_error_type">set_error_type</a>(string)<br/>
This sets the error type name.
<li><a href="#set_use_last_error">set_use_last_error</a>(int)<br/>
This sets the use_last_error flag.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="bug_misc">
bug_misc</a><pre>
int bug_misc(string which)
</pre>
<ul><a name="bug_special">
bug_special</a><pre>
int bug_special(string which)
</pre>
<ul><a name="bug_spell_file">
bug_spell_file</a><pre>
int bug_spell_file(string file,
                   string name)
</pre></br>
This entry point is used to erroring spells without specifically saying
which one.
<br/><ul>
<li><b>Parameters:</b>
<br/>file - the file path to use
<br/>name - the name to use

</dl>

<ul><a name="bug_web">
bug_web</a><pre>
int bug_web(string url)
</pre></br>
This entry point is used to erroring spells without specifically saying
which one.
<br/><ul>
<li><b>Parameters:</b>
<br/>file - the file path to use
<br/>name - the name to use

</dl>

<ul><a name="query_use_last_error">
query_use_last_error</a><pre>
int query_use_last_error()
</pre></br>
This method returns the currently set value of the last error flag.
<br/><ul>
<li><b>Returns:</b>
<br/>the current value of the last error flag

</dl>

<ul><a name="set_error_type">
set_error_type</a><pre>
void set_error_type(string type)
</pre></br>
This sets the error type name.  The error type should be one
of "TYPO", "BUG", "IDEA".
<br/><ul>
<li><b>Parameters:</b>
<br/>type - the type to set
<li><b>See also:</b>
<br/><a href="#query_verb">query_verb()
</a></dl>

<ul><a name="set_use_last_error">
set_use_last_error</a><pre>
void set_use_last_error(int error)
</pre></br>
This sets the use_last_error flag.  If this flag is set to a non-zero
value then the last runtime error stored on the player object will
be attached to the error report.
<br/><ul>
<li><b>Parameters:</b>
<br/>error - the new value of the last error flag

</dl>


<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_errors">
errors</a><pre>
class errors {
               int type;
               string file;
               string error;
               string extra;
               string env;
}

</pre>
</ul>
[an error occurred while processing this directive]

