class Google::Apis::YoutubeAnalyticsV2::ErrorProto

Describes one specific error.

Attributes

argument[RW]

Error arguments, to be used when building user-friendly error messages given the error domain and code. Different error codes require different arguments. Corresponds to the JSON property `argument` @return [Array<String>]

code[RW]

Error code in the error domain. This should correspond to a value of the enum type whose name is in domain. See the core error domain in error_domain.proto. Corresponds to the JSON property `code` @return [String]

debug_info[RW]

Debugging information, which should not be shared externally. Corresponds to the JSON property `debugInfo` @return [String]

domain[RW]

Error domain. RoSy services can define their own domain and error codes. This should normally be the name of an enum type, such as: gdata.CoreErrorDomain Corresponds to the JSON property `domain` @return [String]

external_error_message[RW]

A short explanation for the error, which can be shared outside Google. Please set domain, code and arguments whenever possible instead of this error message so that external APIs can build safe error messages themselves. External messages built in a RoSy interface will most likely refer to information and concepts that are not available externally and should not be exposed. It is safer if external APIs can understand the errors and decide what the error message should look like. Corresponds to the JSON property `externalErrorMessage` @return [String]

location[RW]

Location of the error, as specified by the location type. If location_type is PATH, this should be a path to a field that's relative to the request, using FieldPath notation (net/proto2/util/public/field_path.h). Examples: authenticated_user.gaia_id resource.address.country Corresponds to the JSON property `location` @return [String]

location_type[RW]

Corresponds to the JSON property `locationType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_analytics_v2/classes.rb, line 96
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_analytics_v2/classes.rb, line 101
def update!(**args)
  @argument = args[:argument] if args.key?(:argument)
  @code = args[:code] if args.key?(:code)
  @debug_info = args[:debug_info] if args.key?(:debug_info)
  @domain = args[:domain] if args.key?(:domain)
  @external_error_message = args[:external_error_message] if args.key?(:external_error_message)
  @location = args[:location] if args.key?(:location)
  @location_type = args[:location_type] if args.key?(:location_type)
end