Class: Google::Apis::WorkflowexecutionsV1::StackTraceElement

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

Overview

A single stack element (frame) where an error occurred.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StackTraceElement

Returns a new instance of StackTraceElement.



567
568
569
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 567

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

Instance Attribute Details

#positionGoogle::Apis::WorkflowexecutionsV1::Position

Position contains source position information about the stack trace element such as line number, column number and length of the code block in bytes. Corresponds to the JSON property position



555
556
557
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 555

def position
  @position
end

#routineString

The routine where the error occurred. Corresponds to the JSON property routine

Returns:

  • (String)


560
561
562
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 560

def routine
  @routine
end

#stepString

The step the error occurred at. Corresponds to the JSON property step

Returns:

  • (String)


565
566
567
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 565

def step
  @step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



572
573
574
575
576
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 572

def update!(**args)
  @position = args[:position] if args.key?(:position)
  @routine = args[:routine] if args.key?(:routine)
  @step = args[:step] if args.key?(:step)
end