Exception: Gollum::DuplicatePageError
- Defined in:
- lib/gollum.rb
Instance Attribute Summary collapse
-
#attempted_path ⇒ Object
Returns the value of attribute attempted_path.
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#existing_path ⇒ Object
Returns the value of attribute existing_path.
Instance Method Summary collapse
-
#initialize(dir, existing, attempted, message = nil) ⇒ DuplicatePageError
constructor
A new instance of DuplicatePageError.
Constructor Details
#initialize(dir, existing, attempted, message = nil) ⇒ DuplicatePageError
Returns a new instance of DuplicatePageError.
33 34 35 36 37 38 |
# File 'lib/gollum.rb', line 33 def initialize(dir, existing, attempted, = nil) @dir = dir @existing_path = existing @attempted_path = attempted super( || "Cannot write #{@dir}/#{@attempted_path}, found #{@dir}/#{@existing_path}.") end |
Instance Attribute Details
#attempted_path ⇒ Object
Returns the value of attribute attempted_path.
31 32 33 |
# File 'lib/gollum.rb', line 31 def attempted_path @attempted_path end |
#dir ⇒ Object
Returns the value of attribute dir.
29 30 31 |
# File 'lib/gollum.rb', line 29 def dir @dir end |
#existing_path ⇒ Object
Returns the value of attribute existing_path.
30 31 32 |
# File 'lib/gollum.rb', line 30 def existing_path @existing_path end |