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(attempted, message = nil) ⇒ DuplicatePageError

Returns a new instance of DuplicatePageError.



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

def initialize(attempted, message = nil)
  @attempted_path = attempted
  super(message || "Cannot write #{@attempted_path}: path already exists.")
end

Instance Attribute Details

#attempted_pathObject

Returns the value of attribute attempted_path.



46
47
48
# File 'lib/gollum-lib.rb', line 46

def attempted_path
  @attempted_path
end