class Syskit::TaskNameAlreadyInUse

Exception raised in {RobyApp::Configuration#use_deployment} when trying to register a deployment that provides a task identical to an existing task

Attributes

existing_deployment[R]

@return [Models::ConfiguredDeployment] the already registered

deployment
new_deployment[R]

@return [Models::ConfiguredDeployment] the new deployment

task_name[R]

@return [String] the problematic task name

Public Class Methods

new(task_name, existing_deployment, new_deployment) click to toggle source
# File lib/syskit/exceptions.rb, line 923
def initialize(task_name, existing_deployment, new_deployment)
    @task_name, @existing_deployment, @new_deployment =
        task_name, existing_deployment, new_deployment
end

Public Instance Methods

pretty_print(pp) click to toggle source
# File lib/syskit/exceptions.rb, line 928
def pretty_print(pp)
    pp.text "trying to register #{task_name} from "
    new_deployment.pretty_print(pp)
    pp.breakable
    pp.text "but it is already provided by "
    existing_deployment.pretty_print(pp)
end