Exception: SitePrism::FailedLoadValidationError

Inherits:
PageLoadError show all
Defined in:
lib/site_prism/error.rb

Overview

A page was loaded via #load - And then failed one of the load validations that was either pre-defined or defined by the user

Instance Method Summary collapse

Instance Method Details

#messageObject



68
69
70
71
72
73
74
# File 'lib/site_prism/error.rb', line 68

def message
  if super == self.class.to_s
    'Failed to load - No reason specified.'
  else
    "Failed to load. Reason: #{super}"
  end
end