net.ajaest.jdk.core.main
Class ExceptionHandler

java.lang.Object
  extended by net.ajaest.jdk.core.main.ExceptionHandler

public class ExceptionHandler
extends java.lang.Object


Nested Class Summary
static class ExceptionHandler.KNOWN_EXCEPTIONS
           
 
Field Summary
private static JavaDiKt jdk
           
 
Constructor Summary
ExceptionHandler()
           
 
Method Summary
static boolean handleException(java.lang.Exception e)
           
static boolean handleException(java.lang.Exception e, ExceptionHandler.KNOWN_EXCEPTIONS info)
           
private static boolean handleNoRuntimeException(java.lang.Exception e)
           
private static boolean handleNoRuntimeException(java.lang.Exception e, ExceptionHandler.KNOWN_EXCEPTIONS info)
           
private static boolean handleRuntimeException(java.lang.RuntimeException e)
           
private static boolean handleRuntimeException(java.lang.RuntimeException e, ExceptionHandler.KNOWN_EXCEPTIONS info)
           
static void setJavaDiKt(JavaDiKt jdk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jdk

private static JavaDiKt jdk
Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

setJavaDiKt

public static void setJavaDiKt(JavaDiKt jdk)

handleException

public static boolean handleException(java.lang.Exception e)

handleException

public static boolean handleException(java.lang.Exception e,
                                      ExceptionHandler.KNOWN_EXCEPTIONS info)
Parameters:
e -
Returns:
true if the exception causes the program to exit, false otherwise

handleRuntimeException

private static boolean handleRuntimeException(java.lang.RuntimeException e,
                                              ExceptionHandler.KNOWN_EXCEPTIONS info)
Parameters:
e -
Returns:
true if the exception causes the program to exit, false otherwise

handleNoRuntimeException

private static boolean handleNoRuntimeException(java.lang.Exception e,
                                                ExceptionHandler.KNOWN_EXCEPTIONS info)
Parameters:
e -
Returns:
true if the exception causes the program to exit, false otherwise

handleNoRuntimeException

private static boolean handleNoRuntimeException(java.lang.Exception e)
Parameters:
e -
Returns:
true if the exception causes the program to exit, false otherwise

handleRuntimeException

private static boolean handleRuntimeException(java.lang.RuntimeException e)