+ " not in Jobs Collection of Cluster");
throw new NullPointerException("Job Not Found");
}
if (!profile.processRequest(nodeProfile)) {
throw new GridJobPermissionDeniedException("Permission Denied");
}
// Return GridJobInfo for Profile
return createInfo(profile);
} catch (NullPointerException ex) {
throw new IllegalArgumentException("Invalid GridJob Id " + jobId);
} catch (Exception e) {
throw new GridJobPermissionDeniedException(
"Permission denied due to exception", e);
}
}