Class: DSP::ExceptionDetails

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

Overview

interface ExceptionDetails {

    /** Message contained in the exception. */
    message?: string;
    /** Short type name of the exception object. */
    typeName?: string;
    /** Fully-qualified type name of the exception object. */
    fullTypeName?: string;
    /** Optional expression that can be evaluated in the current scope to obtain the exception object. */
    evaluateName?: string;
    /** Stack trace at the time the exception was thrown. */
    stackTrace?: string;
    /** Details of the exception contained by this exception, if any. */
    innerException?: ExceptionDetails[];
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ExceptionDetails

Returns a new instance of ExceptionDetails.



4551
4552
4553
4554
# File 'lib/dsp/dsp_protocol.rb', line 4551

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[message typeName fullTypeName evaluateName stackTrace innerException]
end

Instance Attribute Details

#evaluateNameObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def evaluateName
  @evaluateName
end

#fullTypeNameObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def fullTypeName
  @fullTypeName
end

#innerExceptionObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def innerException
  @innerException
end

#messageObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def message
  @message
end

#stackTraceObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def stackTrace
  @stackTrace
end

#typeNameObject

type: string # type: string # type: string # type: string # type: string # type: ExceptionDetails[]



4549
4550
4551
# File 'lib/dsp/dsp_protocol.rb', line 4549

def typeName
  @typeName
end

Instance Method Details

#from_h!(value) ⇒ Object



4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
# File 'lib/dsp/dsp_protocol.rb', line 4556

def from_h!(value)
  value = {} if value.nil?
  self.message = value['message']
  self.typeName = value['typeName']
  self.fullTypeName = value['fullTypeName']
  self.evaluateName = value['evaluateName']
  self.stackTrace = value['stackTrace']
  self.innerException = to_typed_aray(value['innerException'], ExceptionDetails)
  self
end