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.



797
798
799
# File 'exceptions.rb', line 797

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