mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
Documenting previously undeclared PosixException from mode().
This commit is contained in:
1 parent
498c7a6647
commit
9005275457
1 file changed
+2
-1
@@ -95,6 +95,7 @@ import java.util.zip.GZIPOutputStream;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
|
||||
import com.sun.jna.Native;
|
||||
import hudson.os.PosixException;
|
||||
import java.util.Enumeration;
|
||||
import java.util.logging.Logger;
|
||||
import org.apache.tools.ant.taskdefs.Chmod;
|
||||
@@ -1362,7 +1363,7 @@ public final class FilePath implements Serializable {
|
||||
* @since 1.311
|
||||
* @see #chmod(int)
|
||||
*/
|
||||
public int mode() throws IOException, InterruptedException {
|
||||
public int mode() throws IOException, InterruptedException, PosixException {
|
||||
if(!isUnix()) return -1;
|
||||
return act(new FileCallable<Integer>() {
|
||||
public Integer invoke(File f, VirtualChannel channel) throws IOException {
|
||||
|
||||
Reference in new issue
Block a user