ishitai.bots
Class ExcepBot

java.lang.Object
  |
  +--ishitai.bots.ExcepBot

public class ExcepBot
extends java.lang.Object

ExcepBot.java Created: Wed Sep 01 1999


Method Summary
 void dump(java.lang.Exception e)
          Dumps the Exception's message and stack trace.
 void dump(java.lang.Exception e, java.lang.String s)
          Dumps Exception's message, stack trace and an added message.
 void message(java.lang.String msg)
          Sends a String to the output of the bot.
 void quit(java.lang.String error)
          Triggers a System.exit and prints message to stderr.
 void setDebug(boolean choice)
          If set to true, exceptions are dumped to stdout; else they go to file "droppings"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDebug

public void setDebug(boolean choice)
If set to true, exceptions are dumped to stdout; else they go to file "droppings"

dump

public void dump(java.lang.Exception e)
Dumps the Exception's message and stack trace.

dump

public void dump(java.lang.Exception e,
                 java.lang.String s)
Dumps Exception's message, stack trace and an added message.
Parameters:
s - The added message.

quit

public void quit(java.lang.String error)
Triggers a System.exit and prints message to stderr.
Parameters:
error - Message for stderr.

message

public void message(java.lang.String msg)
Sends a String to the output of the bot.
Parameters:
msg - String to output.