ingenerator/vagrant-mirror

View on GitHub
lib/vagrant-mirror/errors.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Vagrant
  module Mirror
    module Errors
      class SingleVMEnvironmentRequired < Vagrant::Errors::VagrantError
        status_code(99)

        def initialize()
          message = "Vagrant-mirror currently only supports a single VM environment"
          super
        end
      end

      class Error < Vagrant::Errors::VagrantError
        status_code(100)

        def initialize(msg)
          message = msg
          super
        end
      end

      class MultipleFoldersNotSupported < Vagrant::Errors::VagrantError
        status_code(101)

        def initialize(msg)
          message = msg
          super
        end
      end

      class SharedFolderNotMapped < Vagrant::Errors::VagrantError
        status_code(102)

        def initialize(msg)
          message = msg
          super
        end
      end

    end
  end
end