Exception: StructuraidCore::Elements::Reinforcement::InvalidDistributionDirection
- Inherits:
-
StandardError
- Object
- StandardError
- StructuraidCore::Elements::Reinforcement::InvalidDistributionDirection
- Defined in:
- lib/structuraid_core/errors/reinforcement/invalid_distribution_direction.rb
Instance Method Summary collapse
-
#initialize(distribution_direction, valid_directions) ⇒ InvalidDistributionDirection
constructor
A new instance of InvalidDistributionDirection.
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) = "#{distribution_direction} is not a valid direction, should one of #{valid_directions}" super() end |