File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -485,6 +485,23 @@ class TritonPythonModel:
485485        return  responses
486486``` 
487487
488+ Starting from 23.09, ` pb_utils.TritonError `  may be constructed with an optional
489+ Triton error code on the second parameter. For example:
490+ 
491+ ``` python 
492+ pb_utils.TritonError(" The file is not found"  , pb_utils.TritonError.NOT_FOUND )
493+ ``` 
494+ 
495+ If no code is specified, ` pb_utils.TritonError.INTERNAL `  will be used by default.
496+ 
497+ Supported error codes:
498+ *  ` pb_utils.TritonError.UNKNOWN ` 
499+ *  ` pb_utils.TritonError.INTERNAL ` 
500+ *  ` pb_utils.TritonError.NOT_FOUND ` 
501+ *  ` pb_utils.TritonError.INVALID_ARG ` 
502+ *  ` pb_utils.TritonError.UNAVAILABLE ` 
503+ *  ` pb_utils.TritonError.UNSUPPORTED ` 
504+ *  ` pb_utils.TritonError.ALREADY_EXISTS ` 
488505
489506#### Decoupled mode  
490507
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments