forked from adamwiggins/rush
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pass rush exceptions across the connection
- Loading branch information
Adam Wiggins
committed
Mar 7, 2008
1 parent
ccefb4f
commit e9aad95
Showing
5 changed files
with
67 additions
and
10 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,4 +1,14 @@ | ||
module Rush | ||
# Base class for all rush exceptions. | ||
class Exception < ::Exception; end | ||
|
||
# Client was not authorized by remote server; check credentials. | ||
class NotAuthorized < Exception; end | ||
|
||
# Failed to transmit to the remote server; check if the ssh tunnel is alive, | ||
# and rushd is listening on the other end. | ||
class FailedTransmit < Exception; end | ||
|
||
# The entry (file or dir) referenced does not exist. Message is the entry's full path. | ||
class DoesNotExist < Exception; end | ||
end |
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
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