cdx.scorebot.net.tests
Class TestMisconfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by cdx.scorebot.net.tests.TestMisconfigurationException
All Implemented Interfaces:
java.io.Serializable

public class TestMisconfigurationException
extends java.lang.Exception
implements java.io.Serializable

Thrown to indicate that a method has been passed an illegal or inappropriate configuration argument.

Author:
Sean Sullivan
See Also:
Serialized Form

Constructor Summary
TestMisconfigurationException()
          Instantiates the error with the generic description: "Test misconfigured"
TestMisconfigurationException(java.lang.String s)
          Instantiates the error with passed error message.
 
Method Summary
static java.io.PrintStream getErrorStream()
          Gets the PrintStream which will be used to log all exceptions of this type which are thrown.
static void setErrorStream(java.io.PrintStream errorStream)
          Sets the PrintStream which will be used to log all exceptions of this type which are thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestMisconfigurationException

public TestMisconfigurationException()
Instantiates the error with the generic description: "Test misconfigured"


TestMisconfigurationException

public TestMisconfigurationException(java.lang.String s)
Instantiates the error with passed error message.

Parameters:
s - the description of the error
Method Detail

getErrorStream

public static java.io.PrintStream getErrorStream()
Gets the PrintStream which will be used to log all exceptions of this type which are thrown. Each entry will be timestamped with the current timestamp.

Returns:
the PrintStream which is logging all error messages (null if logging isn't being done)

setErrorStream

public static void setErrorStream(java.io.PrintStream errorStream)
Sets the PrintStream which will be used to log all exceptions of this type which are thrown.

Parameters:
errorStream - the stream to log all error messages to