public static ApiException wrapKnownException(ResultStat stat,Throwable cause){
  return new ApiException(stat,cause.getMessage());
}

public static ApiException wrapKnownException ( ResultStat stat , Throwable cause ) { return new ApiException ( stat , cause . getMessage ( ) ) ; }
use this function when you need to return to user and know how to handle this exception only message will be logged
