<s> class AdnError ( Exception ) : <EOL> pass <EOL> class AdnAPIException ( AdnError ) : <EOL> def __init__ ( self , api_response ) : <EOL> super ( AdnAPIException , self ) . __init__ ( api_response . meta . error_message ) <EOL> self . response = api_response <EOL> self . error_id = api_response . meta . get ( '<STR_LIT>' ) <EOL> self . error_slug = api_response . meta . get ( '<STR_LIT>' ) <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( super ( AdnAPIException , self ) . __str__ ( ) , self . error_id , self . error_slug ) <EOL> class AdnBadRequestAPIException ( AdnAPIException ) : <EOL> def __init__ ( self , response ) : <EOL> response . meta . error_message = response . meta . error_message . replace ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> super ( AdnBadRequestAPIException , self ) . __init__ ( response ) <EOL> class AdnAuthAPIException ( AdnAPIException ) : <EOL> pass <EOL> class AdnRateLimitAPIException ( AdnAPIException ) : <EOL> pass <EOL> class AdnInsufficientStorageException ( AdnAPIException ) : <EOL> pass <EOL> class AdnPermissionDenied ( AdnAPIException ) : <EOL> pass <EOL> class AdnMissing ( AdnAPIException ) : <EOL> pass </s>
