Class R10K::Error
In: lib/r10k/errors.rb
Parent: StandardError

An error class that accepts an optional hash and wrapped error message

Methods

new   wrap  

Attributes

original  [RW] 

Public Class methods

@overload initialize(mesg)

  @param mesg [String] The exception mesg

@overload initialize(mesg, options)

  @param mesg [String] The exception mesg
  @param options [Hash] A set of options to store on the exception

@options options [Array<String>] :backtrace

Generate a wrapped exception

@param original [Exception] The exception to wrap @param mesg [String] @param options [Hash]

@return [R10K::Error]

[Validate]