2014-02-26 23:54:53 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module SyncedFolderSMB
|
|
|
|
module Errors
|
|
|
|
# A convenient superclass for all our errors.
|
|
|
|
class SMBError < Vagrant::Errors::VagrantError
|
|
|
|
error_namespace("vagrant_sf_smb.errors")
|
|
|
|
end
|
|
|
|
|
2017-12-21 00:26:27 +00:00
|
|
|
class SMBNotSupported < SMBError
|
|
|
|
error_key(:not_supported)
|
|
|
|
end
|
|
|
|
|
2017-12-21 23:57:57 +00:00
|
|
|
class SMBStartFailed < SMBError
|
|
|
|
error_key(:start_failed)
|
|
|
|
end
|
|
|
|
|
|
|
|
class SMBCredentialsMissing < SMBError
|
|
|
|
error_key(:credentials_missing)
|
|
|
|
end
|
|
|
|
|
2018-01-02 22:36:28 +00:00
|
|
|
class SMBListFailed < SMBError
|
|
|
|
error_key(:list_failed)
|
|
|
|
end
|
|
|
|
|
|
|
|
class SMBNameError < SMBError
|
|
|
|
error_key(:name_error)
|
|
|
|
end
|
|
|
|
|
2014-02-26 23:54:53 +00:00
|
|
|
class DefineShareFailed < SMBError
|
|
|
|
error_key(:define_share_failed)
|
|
|
|
end
|
|
|
|
|
2017-12-16 00:31:44 +00:00
|
|
|
class PruneShareFailed < SMBError
|
|
|
|
error_key(:prune_share_failed)
|
|
|
|
end
|
|
|
|
|
2014-02-26 23:54:53 +00:00
|
|
|
class NoHostIPAddr < SMBError
|
|
|
|
error_key(:no_routable_host_addr)
|
|
|
|
end
|
|
|
|
|
|
|
|
class PowershellError < SMBError
|
|
|
|
error_key(:powershell_error)
|
|
|
|
end
|
2014-02-26 23:58:43 +00:00
|
|
|
|
2014-04-02 16:45:42 +00:00
|
|
|
class PowershellVersion < SMBError
|
2014-04-07 16:21:24 +00:00
|
|
|
error_key(:powershell_version)
|
2014-04-02 16:45:42 +00:00
|
|
|
end
|
|
|
|
|
2014-02-26 23:58:43 +00:00
|
|
|
class WindowsHostRequired < SMBError
|
|
|
|
error_key(:windows_host_required)
|
|
|
|
end
|
2014-02-27 00:02:33 +00:00
|
|
|
|
|
|
|
class WindowsAdminRequired < SMBError
|
|
|
|
error_key(:windows_admin_required)
|
|
|
|
end
|
2014-02-26 23:54:53 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|