Exception: Roadie::InvalidUrlPath
- Defined in:
- lib/roadie/errors.rb
Overview
Raised when Roadie encounters an invalid URL which cannot be parsed by Ruby’s URI
class.
This could be a hint that something in your HTML or CSS is broken.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
The original error, raised from
URI
.
Instance Method Summary collapse
-
#initialize(given_path, cause = nil) ⇒ InvalidUrlPath
constructor
A new instance of InvalidUrlPath.
Constructor Details
#initialize(given_path, cause = nil) ⇒ InvalidUrlPath
Returns a new instance of InvalidUrlPath.
22 23 24 25 26 27 28 29 30 |
# File 'lib/roadie/errors.rb', line 22 def initialize(given_path, cause = nil) @cause = cause if cause = " Caused by: #{cause}" else = "" end super "Cannot use path \"#{given_path}\" in URL generation.#{}" end |
Instance Attribute Details
#cause ⇒ Object (readonly)
The original error, raised from URI
.
20 21 22 |
# File 'lib/roadie/errors.rb', line 20 def cause @cause end |