Exception: Gollum::DuplicatePageError

Inherits:
Error
  • Object
show all
Defined in:
lib/gollum-lib.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, existing, attempted, message = nil) ⇒ DuplicatePageError

Returns a new instance of DuplicatePageError.



54
55
56
57
58
59
# File 'lib/gollum-lib.rb', line 54

def initialize(dir, existing, attempted, message = nil)
  @dir            = dir
  @existing_path  = existing
  @attempted_path = attempted
  super(message || "Cannot write #{@dir}/#{@attempted_path}, found #{@dir}/#{@existing_path}.")
end

Instance Attribute Details

#attempted_pathObject

Returns the value of attribute attempted_path.



52
53
54
# File 'lib/gollum-lib.rb', line 52

def attempted_path
  @attempted_path
end

#dirObject

Returns the value of attribute dir.



50
51
52
# File 'lib/gollum-lib.rb', line 50

def dir
  @dir
end

#existing_pathObject

Returns the value of attribute existing_path.



51
52
53
# File 'lib/gollum-lib.rb', line 51

def existing_path
  @existing_path
end