ActionException developer documentation

This commit is contained in:
Mitchell Hashimoto 2010-03-04 00:08:08 -08:00
parent 94280943f4
commit be47236c37
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ module Vagrant
def rescue(exception); end
end
# An exception which occured within an action. This should be used instead of
# {Vagrant::Util#error_and_exit error_and_exit}, since it allows the {Runner} to call
# {Base#rescue rescue} on all the actions and properly exit. Any message
# passed into the {ActionException} is then shown and and vagrant exits.
class ActionException < Exception; end
end
end