com.github.drinkjava2.jdialects
Class DialectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.github.drinkjava2.jdialects.DialectException
All Implemented Interfaces:
Serializable

public class DialectException
extends RuntimeException

DialectException for jDialects

Since:
1.0.0
Author:
Yong Zhu
See Also:
Serialized Form

Constructor Summary
DialectException()
           
DialectException(String message)
           
DialectException(String message, Throwable cause)
           
DialectException(Throwable cause)
           
 
Method Summary
static void assureNotEmpty(String str, String... optionMessages)
           
static void assureNotNull(Object obj, String... optionMessages)
           
static void eatException(Exception e)
           
static Object throwEX(String errorMsg)
           
static Object throwEX(String errorMsg, Throwable e)
           
static Object throwEX(Throwable cause)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DialectException

public DialectException()

DialectException

public DialectException(String message)

DialectException

public DialectException(Throwable cause)

DialectException

public DialectException(String message,
                        Throwable cause)
Method Detail

throwEX

public static Object throwEX(String errorMsg,
                             Throwable e)

throwEX

public static Object throwEX(Throwable cause)

throwEX

public static Object throwEX(String errorMsg)

eatException

public static void eatException(Exception e)

assureNotNull

public static void assureNotNull(Object obj,
                                 String... optionMessages)

assureNotEmpty

public static void assureNotEmpty(String str,
                                  String... optionMessages)


Copyright © 2018. All rights reserved.