Class: Google::Apis::PagespeedonlineV5::LighthouseResultV5::RuntimeError

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb

Overview

A top-level error message that, if present, indicates a serious enough problem that this Lighthouse result may need to be discarded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RuntimeError

Returns a new instance of RuntimeError



550
551
552
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 550

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

The enumerated Lighthouse Error code. Corresponds to the JSON property code

Returns:

  • (String)


543
544
545
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 543

def code
  @code
end

#messageString

A human readable message explaining the error code. Corresponds to the JSON property message

Returns:

  • (String)


548
549
550
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 548

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 555

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @message = args[:message] if args.key?(:message)
end