Class: Google::Apis::DisplayvideoV1::ScriptError

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

Overview

An error message for a custom bidding script.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScriptError

Returns a new instance of ScriptError.



8738
8739
8740
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8738

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

Instance Attribute Details

#columnFixnum

The column number in the script where the error was thrown. Corresponds to the JSON property column

Returns:

  • (Fixnum)


8721
8722
8723
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8721

def column
  @column
end

#error_codeString

The type of error. Corresponds to the JSON property errorCode

Returns:

  • (String)


8726
8727
8728
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8726

def error_code
  @error_code
end

#error_messageString

The detailed error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


8731
8732
8733
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8731

def error_message
  @error_message
end

#lineFixnum

The line number in the script where the error was thrown. Corresponds to the JSON property line

Returns:

  • (Fixnum)


8736
8737
8738
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8736

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8743
8744
8745
8746
8747
8748
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8743

def update!(**args)
  @column = args[:column] if args.key?(:column)
  @error_code = args[:error_code] if args.key?(:error_code)
  @error_message = args[:error_message] if args.key?(:error_message)
  @line = args[:line] if args.key?(:line)
end