- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- java.util.concurrent.ExecutionException
 
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
Serializable 
public class ExecutionException extends 异常
尝试检索通过抛出异常中止的任务的结果时抛出的异常。 可以使用Throwable.getCause()方法检查此异常。- 从以下版本开始:
 - 1.5
 - 另请参见:
 -  
         
Future, Serialized Form 
 
-  
        
       
-  
             
构造方法摘要
构造方法 Modifier Constructor 描述 protectedExecutionException()构造一个ExecutionException,没有详细信息。protectedExecutionException(String message)构造具有指定详细消息的ExecutionException。ExecutionException(String message, Throwable cause)构造具有指定的详细信息和原因的ExecutionException。ExecutionException(Throwable cause)构造具有指定原因的ExecutionException。 
-  
             
方法摘要
-  
               
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
-  
               
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
ExecutionException
protected ExecutionException()
构造一个ExecutionException,没有详细信息。 原因未初始化,可以随后通过调用initCause进行初始化。 
-  
ExecutionException
protected ExecutionException(String message)
构造具有指定详细消息的ExecutionException。 原因未初始化,可以随后通过调用initCause进行初始化。- 参数
 -  
              
message- 详细信息 
 
-  
ExecutionException
public ExecutionException(String message, Throwable cause)
构造一个具有指定的详细信息和原因的ExecutionException。- 参数
 -  
              
message- 详细信息 -  
              
cause- 原因(保存以供Throwable.getCause()方法后续检索) 
 
-  
ExecutionException
public ExecutionException(Throwable cause)
构造具有指定原因的ExecutionException。 详细信息设置为(cause == null ? null : cause.toString())(通常包含类和详细信息cause)。- 参数
 -  
              
cause- 原因(由Throwable.getCause()方法保存供以后检索) 
 
 -  
 
 -