org.inria.myriads.snoozecommon.util
Class ErrorUtils

java.lang.Object
  extended by org.inria.myriads.snoozecommon.util.ErrorUtils

public final class ErrorUtils
extends Object

Error utils.

Author:
Eugen Feller

Method Summary
static String getStackTrace(Exception exception)
          Returns the string representation of a stacktrace.
static void processError(String errorMessage)
          Terminates the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processError

public static void processError(String errorMessage)
Terminates the service.

Parameters:
errorMessage - The exception

getStackTrace

public static String getStackTrace(Exception exception)
Returns the string representation of a stacktrace.

Parameters:
exception - The exception
Returns:
The string


Copyright © 2012. All Rights Reserved.