mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-04-26 00:31:22 -04:00
Some checks failed
/ sync-acceptance (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.1 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.2 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.3 (push) Has been cancelled
Vagrant Ruby Tests / Vagrant unit tests on Ruby 3.4 (push) Has been cancelled
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
65 lines
1.4 KiB
Ruby
65 lines
1.4 KiB
Ruby
# Copyright IBM Corp. 2010, 2025
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
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
|
|
|
|
class SMBNotSupported < SMBError
|
|
error_key(:not_supported)
|
|
end
|
|
|
|
class SMBStartFailed < SMBError
|
|
error_key(:start_failed)
|
|
end
|
|
|
|
class SMBCredentialsMissing < SMBError
|
|
error_key(:credentials_missing)
|
|
end
|
|
|
|
class SMBListFailed < SMBError
|
|
error_key(:list_failed)
|
|
end
|
|
|
|
class SMBNameError < SMBError
|
|
error_key(:name_error)
|
|
end
|
|
|
|
class CredentialsRequestError < SMBError
|
|
error_key(:credentials_request_error)
|
|
end
|
|
|
|
class DefineShareFailed < SMBError
|
|
error_key(:define_share_failed)
|
|
end
|
|
|
|
class PruneShareFailed < SMBError
|
|
error_key(:prune_share_failed)
|
|
end
|
|
|
|
class NoHostIPAddr < SMBError
|
|
error_key(:no_routable_host_addr)
|
|
end
|
|
|
|
class PowershellError < SMBError
|
|
error_key(:powershell_error)
|
|
end
|
|
|
|
class PowershellVersion < SMBError
|
|
error_key(:powershell_version)
|
|
end
|
|
|
|
class WindowsHostRequired < SMBError
|
|
error_key(:windows_host_required)
|
|
end
|
|
|
|
class WindowsAdminRequired < SMBError
|
|
error_key(:windows_admin_required)
|
|
end
|
|
end
|
|
end
|
|
end
|