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

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

Overview

Message containing a runtime error config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RuntimeError

Returns a new instance of RuntimeError.



978
979
980
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 978

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


971
972
973
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 971

def code
  @code
end

#messageString

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

Returns:

  • (String)


976
977
978
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 976

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



983
984
985
986
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 983

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