Exception: KXI::Exceptions::WorkspaceCollisionException

Inherits:
Exception
  • Object
show all
Defined in:
lib/kxi/exceptions/workspace_collision_exception.rb

Overview

Raised when part of workspace path is a file

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ WorkspaceCollisionException

Parameters:

  • path (string)

    Path of workspace



15
16
17
18
# File 'lib/kxi/exceptions/workspace_collision_exception.rb', line 15

def initialize(path)
	super("Workspace path '#{path}' is used by file!")
	@path = path
end

Instance Method Details

#pathstring

Gets the path of workspace

Returns:

  • (string)

    Path of workspace



9
10
11
# File 'lib/kxi/exceptions/workspace_collision_exception.rb', line 9

def path
	@path
end