Exception: StructuraidCore::Elements::Reinforcement::InvalidDistributionDirection

Inherits:
StandardError
  • Object
show all
Defined in:
lib/structuraid_core/errors/reinforcement/invalid_distribution_direction.rb

Instance Method Summary collapse

Constructor Details

#initialize(distribution_direction, valid_directions) ⇒ InvalidDistributionDirection

Returns a new instance of InvalidDistributionDirection.



5
6
7
8
9
# File 'lib/structuraid_core/errors/reinforcement/invalid_distribution_direction.rb', line 5

def initialize(distribution_direction, valid_directions)
  message = "#{distribution_direction} is not a valid direction, should one of #{valid_directions}"

  super(message)
end