Exception: Berkshelf::UnknownCompressionType
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::UnknownCompressionType
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(target, destination) ⇒ UnknownCompressionType
constructor
A new instance of UnknownCompressionType.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(target, destination) ⇒ UnknownCompressionType
Returns a new instance of UnknownCompressionType.
324 325 326 327 |
# File 'lib/berkshelf/errors.rb', line 324 def initialize(target, destination) @target = target @destination = destination end |
Instance Method Details
#to_s ⇒ Object Also known as: message
329 330 331 |
# File 'lib/berkshelf/errors.rb', line 329 def to_s "The file at '#{@target}' is not a known compression type, and cannot be decompressed into '#{@destination}'" end |