Exception: StructuraidCore::DesignCodes::RequirementNotFulfilledError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/structuraid_core/errors/design_codes/requirement_not_fulfilled_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(requirement, message, code_reference) ⇒ RequirementNotFulfilledError

Returns a new instance of RequirementNotFulfilledError.



6
7
8
9
10
11
12
# File 'lib/structuraid_core/errors/design_codes/requirement_not_fulfilled_error.rb', line 6

def initialize(requirement, message, code_reference)
  @requirement = requirement
  @message = message
  @code_reference = code_reference

  super(message)
end

Instance Attribute Details

#code_referenceObject (readonly)

Returns the value of attribute code_reference.



4
5
6
# File 'lib/structuraid_core/errors/design_codes/requirement_not_fulfilled_error.rb', line 4

def code_reference
  @code_reference
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/structuraid_core/errors/design_codes/requirement_not_fulfilled_error.rb', line 4

def message
  @message
end

#requirementObject (readonly)

Returns the value of attribute requirement.



4
5
6
# File 'lib/structuraid_core/errors/design_codes/requirement_not_fulfilled_error.rb', line 4

def requirement
  @requirement
end