Exception: HammerCLIForeman::ResolverError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hammer_cli_foreman/exceptions.rb

Overview

Resolver exceptions

Direct Known Subclasses

MissingSearchOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, resource) ⇒ ResolverError

Returns a new instance of ResolverError.



10
11
12
13
# File 'lib/hammer_cli_foreman/exceptions.rb', line 10

def initialize(msg, resource)
  @resource = resource
  super(msg)
end

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



8
9
10
# File 'lib/hammer_cli_foreman/exceptions.rb', line 8

def resource
  @resource
end