vaguerent/lib/vagrant/errors.rb
Mitchell Hashimoto 2f2ac59dd5 vagrant status
2010-08-24 17:23:46 -07:00

14 lines
467 B
Ruby

module Vagrant
class VagrantError < StandardError
def self.status_code(code = nil)
define_method(:status_code) { code }
end
end
class CLIMissingEnvironment < VagrantError; status_code(1); end
class BoxNotFound < VagrantError; status_code(2); end
class NoEnvironmentError < VagrantError; status_code(3); end
class VMNotFoundError < VagrantError; status_code(4); end
class MultiVMEnvironmentRequired < VagrantError; status_code(5); end
end