Class: Ippon::Validate::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/ippon/validate.rb

Overview

Represents an error which can happen during validation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathArray

Returns the path where the error occured.

Returns:

  • (Array)

    the path where the error occured


374
375
376
# File 'lib/ippon/validate.rb', line 374

def path
  @path
end

#stepStep

Returns the step which caused the error.

Returns:

  • (Step)

    the step which caused the error


374
375
376
# File 'lib/ippon/validate.rb', line 374

def step
  @step
end

Instance Method Details

#messageString

Returns an error message.

This is produced by Step#message.

Returns:

  • (String)

386
387
388
# File 'lib/ippon/validate.rb', line 386

def message
  step.message
end