com.clra.util
Class ErrorUtils
java.lang.Object
|
+--com.clra.util.ErrorUtils
- public final class ErrorUtils
- extends Object
Some common error handling tasks.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 occurredt
- an error
impossible
public void impossible()
- Mark a code branch as impossible to reach (assuming a correct design).
- Throws:
throws
- a Error if executed.