Object ExceptionToolkit

  • All Implemented Interfaces:

    
    public class ExceptionToolkit
    
                        

    Exception toolkit 异常工具类

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final <T extends VoidRuntimeException> Unit throwException(Class<T> exception, String message) Throw exception 抛出异常
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • throwException

         final <T extends VoidRuntimeException> Unit throwException(Class<T> exception, String message)

        Throw exception 抛出异常

        Parameters:
        exception - 异常
        message - 消息