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.



735
736
737
# File 'exceptions.rb', line 735

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