lib/capistrano/asg/rolling/exception.rb in capistrano-asg-rolling-0.3.0 vs lib/capistrano/asg/rolling/exception.rb in capistrano-asg-rolling-0.4.0
- old
+ new
@@ -13,8 +13,18 @@
class NoLaunchTemplate < Capistrano::ASG::Rolling::Exception
end
class InstanceRefreshFailed < Capistrano::ASG::Rolling::Exception
end
+
+ # Exception when instance terminate fails.
+ class InstanceTerminateFailed < Capistrano::ASG::Rolling::Exception
+ attr_reader :instance
+
+ def initialize(instance, exception)
+ @instance = instance
+ super(exception)
+ end
+ end
end
end
end