Skip to content

Class: DSPyError

Root of the public DSPy exception hierarchy (dspy.DSPyError).

URI: dspy:DSPyError

 classDiagram
    class DSPyError
    click DSPyError href "../DSPyError/"
      NamedThing <|-- DSPyError
        click NamedThing href "../NamedThing/"


      DSPyError <|-- AdapterParseError
        click AdapterParseError href "../AdapterParseError/"
      DSPyError <|-- LMError
        click LMError href "../LMError/"


      DSPyError : code_value

      DSPyError : description

      DSPyError : id

      DSPyError : message

      DSPyError : name

      DSPyError : retryable

Inheritance

Slots

Name Cardinality and Range Description Inheritance
message 1
String
Human-readable error message direct
code_value 0..1
String
Provider error code direct
retryable 0..1
Boolean
direct
id 1
Identifier
Stable opaque identifier for an instance NamedThing
name 0..1
String
Short human-readable name NamedThing
description 0..1
String
Free-form description NamedThing

In Subsets

Identifier and Mapping Information

Annotations

property value
dspy_source_paths ['dspy/utils/exceptions.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/utils/exceptions.py']

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:DSPyError
native dspy:DSPyError
close mcp:Error

LinkML Source

Direct

name: DSPyError
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/utils/exceptions.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/utils/exceptions.py
description: Root of the public DSPy exception hierarchy (``dspy.DSPyError``).
in_subset:
- errors
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:Error
is_a: NamedThing
slots:
- message
- code_value
- retryable

Induced

name: DSPyError
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/utils/exceptions.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/utils/exceptions.py
description: Root of the public DSPy exception hierarchy (``dspy.DSPyError``).
in_subset:
- errors
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:Error
is_a: NamedThing
attributes:
  message:
    name: message
    description: Human-readable error message.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: DSPyError
    domain_of:
    - DSPyError
    range: string
    required: true
  code_value:
    name: code_value
    description: Provider error code.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: DSPyError
    domain_of:
    - DSPyError
    range: string
  retryable:
    name: retryable
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: DSPyError
    domain_of:
    - DSPyError
    range: boolean
  id:
    name: id
    description: Stable opaque identifier for an instance.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: DSPyError
    domain_of:
    - NamedThing
    range: Identifier
    required: true
  name:
    name: name
    description: Short human-readable name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: rdfs:label
    owner: DSPyError
    domain_of:
    - NamedThing
    - LMToolCallPart
    - LMMessage
    - LMToolSpec
    range: string
  description:
    name: description
    description: Free-form description.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: dct:description
    owner: DSPyError
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string