Exception: PSP::Toolchain::Errors::InvalidPrefix
- Inherits:
-
PSP::Toolchain::Error
- Object
- StandardError
- PSP::Toolchain::Error
- PSP::Toolchain::Errors::InvalidPrefix
- Defined in:
- lib/psp/toolchain/errors/invalid_prefix.rb
Overview
Raised when the directory given for the :prefix option does not exist.
Class Method Summary collapse
-
.check(options) ⇒ Pathname
The prefix value converted into a Pathname.
Instance Method Summary collapse
-
#to_s ⇒ String
The error message.
Class Method Details
.check(options) ⇒ Pathname
Returns The prefix value converted into a Pathname.
13 14 15 |
# File 'lib/psp/toolchain/errors/invalid_prefix.rb', line 13 def self.check() Pathname.new( [:prefix] )..tap { |prefix| raise self unless prefix.exist? } end |
Instance Method Details
#to_s ⇒ String
Returns The error message.
18 19 20 |
# File 'lib/psp/toolchain/errors/invalid_prefix.rb', line 18 def to_s 'prefix directory does not exist' end |