
    :i                         " S  S\ 5      r " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r " S S\5      r " S S\5      r	 " S S\5      r
 " S S\5      r " S S\5      rg)c                   F    \ rS rSr% SrSr\\S'    S	S\S-  SS4S jjrSr	g)
MistralCommonException   zpBase class for all Mistral exceptions.

Attributes:
    message: A human-readable message describing the error.
zInternal server errormessageNreturnc                      U(       a  Xl         gg)zInitialize the `MistralCommonException` with an optional message.

If no message is provided, the default message is used.

Args:
   message: A human-readable message describing the error.
Nr   )selfr   s     S/home/james-whalen/.local/lib/python3.13/site-packages/mistral_common/exceptions.py__init__MistralCommonException.__init__
   s     "L     r   )N)
__name__
__module____qualname____firstlineno____doc__r   str__annotations__r   __static_attributes__ r   r
   r   r      s8     +GS* ##t# 
# #r   r   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )TokenizerException   z-Exception raised for errors in the tokenizer.r   r   Nc                 $   > [         TU ]  U5        g)zuInitialize the `TokenizerException` with a message.

Args:
  message: A human-readable message describing the error.
Nsuperr   r	   r   	__class__s     r
   r   TokenizerException.__init__        	!r   r   	r   r   r   r   r   r   r   r   __classcell__r   s   @r
   r   r      s    8" " " "r   r   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )$UnsupportedTokenizerFeatureException%   z;Exception raised for unsupported features in the tokenizer.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `UnsupportedTokenizerFeatureException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   -UnsupportedTokenizerFeatureException.__init__(   r    r   r   r!   r#   s   @r
   r%   r%   %   s    F" " " "r   r%   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidRequestException1   z&Exception raised for invalid requests.r   r   Nc                 $   > [         TU ]  U5        g)z{Initialize the `InvalidRequestException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r    InvalidRequestException.__init__4   r    r   r   r!   r#   s   @r
   r*   r*   1   s    1" " " "r   r*   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidSystemPromptException=   z,Exception raised for invalid system prompts.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidSystemPromptException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   %InvalidSystemPromptException.__init__@   r    r   r   r!   r#   s   @r
   r/   r/   =       7" " " "r   r/   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ ) InvalidMessageStructureExceptionI   z0Exception raised for invalid message structures.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidMessageStructureException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   )InvalidMessageStructureException.__init__L   r    r   r   r!   r#   s   @r
   r5   r5   I       ;" " " "r   r5   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ ) InvalidAssistantMessageExceptionU   z0Exception raised for invalid assistant messages.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidAssistantMessageException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   )InvalidAssistantMessageException.__init__X   r    r   r   r!   r#   s   @r
   r;   r;   U   r9   r   r;   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidToolMessageExceptiona   z+Exception raised for invalid tool messages.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidToolMessageException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   $InvalidToolMessageException.__init__d   r    r   r   r!   r#   s   @r
   r@   r@   a       6" " " "r   r@   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidToolSchemaExceptionm   z*Exception raised for invalid tool schemas.r   r   Nc                 $   > [         TU ]  U5        g)z~Initialize the `InvalidToolSchemaException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   #InvalidToolSchemaException.__init__p   r    r   r   r!   r#   s   @r
   rF   rF   m   s    5" " " "r   rF   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidUserMessageExceptiony   z+Exception raised for invalid user messages.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidUserMessageException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   $InvalidUserMessageException.__init__|   r    r   r   r!   r#   s   @r
   rK   rK   y   rD   r   rK   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidFunctionCallException   z,Exception raised for invalid function calls.r   r   Nc                 $   > [         TU ]  U5        g)zInitialize the `InvalidFunctionCallException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   %InvalidFunctionCallException.__init__   r    r   r   r!   r#   s   @r
   rP   rP      r3   r   rP   c                   8   ^  \ rS rSrSrS\SS4U 4S jjrSrU =r$ )InvalidToolException   z#Exception raised for invalid tools.r   r   Nc                 $   > [         TU ]  U5        g)zxInitialize the `InvalidToolException` with a message.

Args:
   message: A human-readable message describing the error.
Nr   r   s     r
   r   InvalidToolException.__init__   r    r   r   r!   r#   s   @r
   rU   rU      s    ." " " "r   rU   N)	Exceptionr   r   r%   r*   r/   r5   r;   r@   rF   rK   rP   rU   r   r   r
   <module>rZ      s   #Y #0	"/ 	"	"+A 	"	"4 	"	"#9 	"	"'= 	"	"'= 	"	""8 	"	"!7 	"	""8 	"	"#9 	"	"1 	"r   