class PIM::ValidationFailure

Attributes

failure_level[R]
failure_message[R]
failure_params[R]
failure_value[R]

Public Class Methods

new(args = {}) click to toggle source
Calls superclass method
# File pim.rb, line 9125
def initialize args = {}
  @failure_level = PIM.get_value(args, :failure_level)
  @failure_value = PIM.get_value(args, :failure_value)
  @failure_message = PIM.get_value(args, :failure_message) || 'Validation failure'
  @failure_params = PIM.get_value(args, :failure_params)
  unless PIM.is_empty?(@failure_params)
    @failure_params = PIM.symbolized_hash(@failure_params)
    @failure_message = PIM.safe_reference_replace(@failure_message, @failure_params)
  end
  super @failure_message
end