lib/capistrano/asg/rolling/exception.rb in capistrano-asg-rolling-0.4.1 vs lib/capistrano/asg/rolling/exception.rb in capistrano-asg-rolling-0.5.0

- old
+ new

@@ -11,19 +11,33 @@ end class NoLaunchTemplate < Capistrano::ASG::Rolling::Exception end + class StartInstanceRefreshError < Capistrano::ASG::Rolling::Exception + end + + # Exception when the instance refresh failed on one of the ASGs. class InstanceRefreshFailed < Capistrano::ASG::Rolling::Exception + def initialize + super('Failed to update Auto Scaling Group(s)') + end end - # Exception when instance terminate fails. + # Exception when instance terminate has failed. class InstanceTerminateFailed < Capistrano::ASG::Rolling::Exception attr_reader :instance def initialize(instance, exception) @instance = instance super(exception) + end + end + + # Exception when no instances could be launched. + class NoInstancesLaunched < Capistrano::ASG::Rolling::Exception + def initialize + super('No instances have been launched. Are you using a configuration with rolling deployments?') end end end end end