class FolderStash::Errors::BranchError

Error that is raises when attempting to create a branch in a folder that can not be branched (typically the terminal).

Attributes

dir[R]

Directory for the folder where the branch was attempted.

Public Class Methods

new(msg = nil, dir: nil) click to toggle source
Calls superclass method
# File lib/folder_stash/errors/branch_error.rb, line 11
def initialize(msg = nil, dir: nil)
  @dir = dir
  msg ||= "Can not branch in #{dir} because it is a tree terminal."
  super msg
end