lib/vagrant-sshfs/errors.rb in vagrant-sshfs-0.0.8 vs lib/vagrant-sshfs/errors.rb in vagrant-sshfs-1.0.0
- old
+ new
@@ -1,7 +1,22 @@
-module Vagrant
- module SshFS
- class Error < Errors::VagrantError
- error_namespace("vagrant.config.sshfs.error")
+module VagrantPlugins
+ module SyncedFolderSSHFS
+ module Errors
+ # A convenient superclass for all our errors.
+ class SSHFSError < Vagrant::Errors::VagrantError
+ error_namespace("vagrant.sshfs.errors")
+ end
+
+ class SSHFSMountFailed < SSHFSError
+ error_key(:mount_failed)
+ end
+
+ class SSHFSInstallFailed < SSHFSError
+ error_key(:install_failed)
+ end
+
+ class SSHFSNotInstalledInGuest < SSHFSError
+ error_key(:sshfs_not_in_guest)
+ end
end
end
end