Damien Martin-Guillerez | f88f4d8 | 2015-09-25 13:56:55 +0000 | [diff] [blame] | 1 | // Copyright 2015 The Bazel Authors. All rights reserved. |
Philipp Wollermann | 1d50375 | 2015-06-30 16:36:01 +0000 | [diff] [blame] | 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package com.google.devtools.build.lib.unix; |
| 16 | |
| 17 | import java.io.IOException; |
| 18 | |
| 19 | /** |
| 20 | * An IOException subclass that is thrown when a POSIX filesystem call returns |
| 21 | * an EPERM errno. The message is generally "Operation not permitted". |
| 22 | */ |
| 23 | public class FilePermissionException extends IOException { |
| 24 | /** |
| 25 | * Constructs a <code>FilePermissionException</code> with <code>null</code> |
| 26 | * as its error detail message. |
| 27 | */ |
| 28 | public FilePermissionException() { |
| 29 | super(); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Constructs an <code>FilePermissionException</code> with the specified detail |
| 34 | * message. The error message string <code>s</code> can later be |
| 35 | * retrieved by the <code>{@link java.lang.Throwable#getMessage}</code> |
| 36 | * method of class <code>java.lang.Throwable</code>. |
| 37 | * |
| 38 | * @param s the detail message. |
| 39 | */ |
| 40 | public FilePermissionException(String s) { |
| 41 | super(s); |
| 42 | } |
| 43 | } |