org.objectweb.dream.util
Class Error

java.lang.Object
  extended by org.objectweb.dream.util.Error

public final class Error
extends Object

Defines some methods to handle (i.e. throw exception) errors.


Method Summary
static void bug(Logger logger)
          Handles a bug: throws an InternalErrorand logs a ERROR message.
static void bug(Logger logger, Throwable e)
          Handles a bug: throws an InternalErrorand logs a ERROR message.
static void error(String message, Logger logger)
          Handles an error: throws an InternalErrorand logs a ERROR message.
static void error(String message, Logger logger, Throwable e)
          Handles an error: throws an InternalErrorand logs a ERROR message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bug

public static void bug(Logger logger)
Handles a bug: throws an InternalErrorand logs a ERROR message.

Parameters:
logger - the logger to be used to log the error message.

bug

public static void bug(Logger logger,
                       Throwable e)
Handles a bug: throws an InternalErrorand logs a ERROR message.

Parameters:
logger - the logger to be used to log the error message.
e - a throwable object.

error

public static void error(String message,
                         Logger logger,
                         Throwable e)
Handles an error: throws an InternalErrorand logs a ERROR message.

Parameters:
message - the message to display.
logger - the logger to be used to log the error message.
e - a throwable object.

error

public static void error(String message,
                         Logger logger)
Handles an error: throws an InternalErrorand logs a ERROR message.

Parameters:
message - the message to display.
logger - the logger to be used to log the error message.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.