Exception: Wisepdf::NoExecutableError
- Defined in:
- lib/wisepdf/errors.rb
Instance Method Summary collapse
-
#initialize(path = nil) ⇒ NoExecutableError
constructor
A new instance of NoExecutableError.
Constructor Details
#initialize(path = nil) ⇒ NoExecutableError
Returns a new instance of NoExecutableError.
3 4 5 6 7 8 |
# File 'lib/wisepdf/errors.rb', line 3 def initialize(path=nil) msg = "No wkhtmltopdf found or it is not executable\n" msg += "Path: '#{path}'\n" unless path.nil? msg += "Please install wkhtmltopdf - http://code.google.com/p/wkhtmltopdf" super(msg) end |