Exception: ShebangDetectionError

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

Overview

Raised when detected_perl_shebang etc cannot detect the shebang.

Instance Method Summary collapse

Constructor Details

#initialize(type, reason) ⇒ ShebangDetectionError

Returns a new instance of ShebangDetectionError.



759
760
761
# File 'exceptions.rb', line 759

def initialize(type, reason)
  super "Cannot detect #{type} shebang: #{reason}."
end