Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved error handling for bareos-fuse
- Loading branch information
1 parent
ec03144
commit 8b61728
Showing
5 changed files
with
59 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#__all__ = [ "bconsole" ] | ||
from bareos.fuse.exceptions import * | ||
from bareos.fuse.bareosfuse import BareosFuse | ||
import bareos.fuse.node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
Bareos-Fuse specific exceptions | ||
""" | ||
|
||
class ParameterMissing(Exception): | ||
"""parameter missing""" | ||
pass | ||
|
||
class SocketConnectionRefused(Exception): | ||
"""network socket connection refused""" | ||
pass | ||
|
||
class RestoreClientUnknown(Exception): | ||
"""given restore client is not known""" | ||
pass | ||
|
||
class RestorePathInvalid(Exception): | ||
"""restore path is invalid""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters