Class: DSP::SetExceptionBreakpointsArguments

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface SetExceptionBreakpointsArguments {

    /** IDs of checked exception options. The set of IDs is returned via the 'exceptionBreakpointFilters' capability. */
    filters: string[];
    /** Configuration options for selected exceptions.
        The attribute is only honored by a debug adapter if the capability 'supportsExceptionOptions' is true.
    */
    exceptionOptions?: ExceptionOptions[];
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ SetExceptionBreakpointsArguments

Returns a new instance of SetExceptionBreakpointsArguments.



1548
1549
1550
1551
# File 'lib/dsp/dsp_protocol.rb', line 1548

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[exceptionOptions]
end

Instance Attribute Details

#exceptionOptionsObject

type: string[] # type: ExceptionOptions[]



1546
1547
1548
# File 'lib/dsp/dsp_protocol.rb', line 1546

def exceptionOptions
  @exceptionOptions
end

#filtersObject

type: string[] # type: ExceptionOptions[]



1546
1547
1548
# File 'lib/dsp/dsp_protocol.rb', line 1546

def filters
  @filters
end

Instance Method Details

#from_h!(value) ⇒ Object



1553
1554
1555
1556
1557
1558
# File 'lib/dsp/dsp_protocol.rb', line 1553

def from_h!(value)
  value = {} if value.nil?
  self.filters = value['filters'].map { |val| val } unless value['filters'].nil?
  self.exceptionOptions = to_typed_aray(value['exceptionOptions'], ExceptionOptions)
  self
end