Sha256: ed2372e30f7efafd9396c7929f18e4eb0185b074d262dac320cf66276eae5e39

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 KB

Contents

# frozen_string_literal: true

require 'vagrant'

module VagrantPlugins
  module ScpSync
    module Errors
      # Namespace for Vagrant SCP Sync Errors
      class VagrantScpSyncError < Vagrant::Errors::VagrantError
        error_namespace('vagrant_scp_sync.errors')
      end

      # This Class denotes Errors for SCP Sync
      class SyncedFolderScpSyncError < VagrantScpSyncError
        error_key(:scp_sync_error, 'vagrant_scp_sync.errors')
      end

      # This Class denotes Errors for Manual SCP Sync
      class SyncedFolderScpSyncScpSyncFolderError < VagrantScpSyncError
        error_key(:scp_sync_folder_error, 'vagrant_scp_sync.errors')
      end

      # This Class denotes Delete Dir Errors for SCP Sync
      class SyncedFolderScpSyncDeleteDirError < VagrantScpSyncError
        error_key(:scp_sync_error_delete_directory, 'vagrant_scp_sync.errors')
      end

      # This Class denotes Make Dir Errors for SCP Sync
      class SyncedFolderScpSyncMakeDirError < VagrantScpSyncError
        error_key(:scp_sync_error_make_directory, 'vagrant_scp_sync.errors')
      end

      # This Class denotes Make Dir Errors for SCP Sync
      class SyncedFolderScpSyncChangePermissionsDirError < VagrantScpSyncError
        error_key(:scp_sync_error_change_permissions_directory, 'vagrant_scp_sync.errors')
      end

      # This Class denotes Make Dir Errors for SCP Sync
      class SyncedFolderScpSyncChangeOwnershipDirError < VagrantScpSyncError
        error_key(:scp_sync_error_change_ownership_directory, 'vagrant_scp_sync.errors')
      end

      # This Class denotes that SCP Sync is not found
      class SCPNotFound < VagrantScpSyncError
        error_key(:scp_installed_error, 'vagrant_scp_sync.errors')
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vagrant-scp-sync-0.5.18 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.17 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.16 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.15 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.14 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.13 lib/vagrant-scp-sync/errors.rb
vagrant-scp-sync-0.5.12 lib/vagrant-scp-sync/errors.rb