Skip to content

Commit

Permalink
🛠️ Update Error docstring, fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Nov 22, 2023
1 parent 400304a commit cad3b8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/funcchain/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ def __str__(self) -> str:

class Error(BaseModel):
"""
If anything goes wrong and you can not do what is expected,
use this error function as fallback.
Fallback function for invalid input.
If you are unsure on what function to call, use this error function as fallback.
This will tell the user that the input is not valid.
"""

title: str = Field(..., description="CamelCase Name titeling the error")
title: str = Field(description="CamelCase Name titeling the error")
description: str = Field(
..., description="Short description of the unexpected situation"
)
Expand Down

0 comments on commit cad3b8b

Please sign in to comment.