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.
326 327 328 329 |
# File 'lib/berkshelf/errors.rb', line 326 def initialize(target, destination) @target = target @destination = destination end |
Instance Method Details
#to_s ⇒ Object Also known as: message
331 332 333 |
# File 'lib/berkshelf/errors.rb', line 331 def to_s "The file at '#{@target}' is not a known compression type, and cannot be decompressed into '#{@destination}'" end |