Class: Google::Apis::DisplayvideoV2::ScriptError

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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.



9792
9793
9794
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9792

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)


9775
9776
9777
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9775

def column
  @column
end

#error_codeString

The type of error. Corresponds to the JSON property errorCode

Returns:

  • (String)


9780
9781
9782
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9780

def error_code
  @error_code
end

#error_messageString

The detailed error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


9785
9786
9787
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9785

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)


9790
9791
9792
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9790

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9797
9798
9799
9800
9801
9802
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 9797

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