Exception: IERS::ValidationError

Inherits:
DownloadError show all
Defined in:
lib/iers/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, path: nil, reason: nil) ⇒ ValidationError

Returns a new instance of ValidationError.



52
53
54
55
56
# File 'lib/iers/errors.rb', line 52

def initialize(message = nil, path: nil, reason: nil)
  @path = path
  @reason = reason
  super(message)
end

Instance Attribute Details

#pathPathname? (readonly)

Returns:

  • (Pathname, nil)


48
49
50
# File 'lib/iers/errors.rb', line 48

def path
  @path
end

#reasonString? (readonly)

Returns:

  • (String, nil)


50
51
52
# File 'lib/iers/errors.rb', line 50

def reason
  @reason
end