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.



9200
9201
9202
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9200

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)


9183
9184
9185
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9183

def column
  @column
end

#error_codeString

The type of error. Corresponds to the JSON property errorCode

Returns:

  • (String)


9188
9189
9190
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9188

def error_code
  @error_code
end

#error_messageString

The detailed error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


9193
9194
9195
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9193

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)


9198
9199
9200
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9198

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9205
9206
9207
9208
9209
9210
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 9205

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