Class: ContextDev::Models::Failure

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/failure.rb,
sig/context_dev/models/failure.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(code:, message:) ⇒ Failure

A failure of the batch as a whole, distinct from the per-page failures in page_errors.

Parameters:

  • code (String)

    Why the batch itself stopped.

  • message (String)

    Human-readable explanation.

  • code: (String)
  • message: (String)


# File 'lib/context_dev/models/failure.rb', line 18

Instance Attribute Details

#codeString

Why the batch itself stopped.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/context_dev/models/failure.rb', line 10

required :code, String

#messageString

Human-readable explanation.

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/context_dev/models/failure.rb', line 16

required :message, String

Instance Method Details

#to_hash{ code: String, message: String }

Returns:

  • ({ code: String, message: String })


12
# File 'sig/context_dev/models/failure.rbs', line 12

def to_hash: -> { code: String, message: String }