CLRA 0.1.2

com.clra.util
Class ErrorUtils

java.lang.Object
  |
  +--com.clra.util.ErrorUtils

public final class ErrorUtils
extends Object

Some common error handling tasks.


Method Summary
static String createDbgMsg(String context, Throwable t)
          Creates a debugging message, suitable as a logging message.
static String createDbgMsg(Throwable t)
          Creates a debugging message, suitable as a logging message.
 void impossible()
          Mark a code branch as impossible to reach (assuming a correct design).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDbgMsg

public static String createDbgMsg(Throwable t)
Creates a debugging message, suitable as a logging message. The message is not suitable to display to a user, since it is too low-level.
Parameters:
t - an error

createDbgMsg

public static String createDbgMsg(String context,
                                  Throwable t)
Creates a debugging message, suitable as a logging message. The message is not suitable to display to a user, since it is too low-level.
Parameters:
context - A string that identifies where an error occurred
t - an error

impossible

public void impossible()
Mark a code branch as impossible to reach (assuming a correct design).
Throws:
throws - a Error if executed.

CLRA 0.1.2