Errors¶
This section contains the distilabel custom errors. Unlike exceptions, errors in distilabel are used to handle unexpected situations that can't be anticipated and that can't be handled in a controlled way.
            DistilabelError
¶
    A mixin class for common functionality shared by all Distilabel-specific errors.
Attributes:
| Name | Type | Description | 
|---|---|---|
message | 
            
               A message describing the error.  | 
          |
page | 
            
               An optional error code from PydanticErrorCodes enum.  | 
          
Examples:
raise DistilabelUserError("This is an error message.")
This is an error message.
raise DistilabelUserError("This is an error message.", page="sections/getting_started/faq/")
This is an error message.
For further information visit 'https://distilabel.argilla.io/latest/sections/getting_started/faq/'
Source code in src/distilabel/errors.py
                
            DistilabelUserError
¶
    
              Bases: DistilabelError, ValueError
ValueError that we can redirect to a given page in the documentation.
Source code in src/distilabel/errors.py
                
              
            DistilabelTypeError
¶
    
              Bases: DistilabelError, TypeError
TypeError that we can redirect to a given page in the documentation.
Source code in src/distilabel/errors.py
                
              
            DistilabelNotImplementedError
¶
    
              Bases: DistilabelError, NotImplementedError
NotImplementedError that we can redirect to a given page in the documentation.