Exception: TapNoCustomRemoteError

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised when run brew tap --custom-remote without a remote URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ TapNoCustomRemoteError

Returns a new instance of TapNoCustomRemoteError.



366
367
368
369
370
371
372
# File 'exceptions.rb', line 366

def initialize(name)
  @name = name

  super <<~EOS
    Tap #{name} with option `--custom-remote` but without a remote URL.
  EOS
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



364
365
366
# File 'exceptions.rb', line 364

def name
  @name
end