Exception: OcflTools::Errors::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ocfl_tools/ocfl_errors.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg: "A validation error has occured.", details: {}) ⇒ ValidationError

Returns a new instance of ValidationError.



8
9
10
11
# File 'lib/ocfl_tools/ocfl_errors.rb', line 8

def initialize(msg: "A validation error has occured.", details: {} )
  @msg = msg
  @details = details
end

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



6
7
8
# File 'lib/ocfl_tools/ocfl_errors.rb', line 6

def details
  @details
end

#msgObject

Returns the value of attribute msg.



7
8
9
# File 'lib/ocfl_tools/ocfl_errors.rb', line 7

def msg
  @msg
end