|  |  | 
 |  |  | package com.zy.asrs.task; | 
 |  |  |  | 
 |  |  | import com.core.exception.CoolException; | 
 |  |  | import com.zy.asrs.task.core.AsrsException; | 
 |  |  | import com.zy.asrs.task.core.ReturnT; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  | //    protected abstract ReturnT<T> start(); | 
 |  |  |  | 
 |  |  |     protected void exceptionHandle(String errorMsg){ | 
 |  |  |     protected void exceptionHandle(String errorMsg) { | 
 |  |  |         log.error(errorMsg); | 
 |  |  |         exceptionHandle(errorMsg, (Object) null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     protected void exceptionHandle(String errorMsg, Object... args){ | 
 |  |  |     protected void exceptionHandle(String errorMsg, Object... args) { | 
 |  |  |         log.error(errorMsg); | 
 |  |  |         throw new CoolException(MessageFormat.format(errorMsg, args)); | 
 |  |  |     } |