<s> class PyOrientException ( Exception ) : <EOL> def __init__ ( self , message , errors ) : <EOL> _errorClass = message . split ( "<STR_LIT:.>" ) [ - <NUM_LIT:1> ] <EOL> x = { <EOL> "<STR_LIT>" : PyOrientSQLParsingException , <EOL> "<STR_LIT>" : PyOrientDatabaseException , <EOL> "<STR_LIT>" : PyOrientDatabaseException , <EOL> "<STR_LIT>" : PyOrientCommandException , <EOL> "<STR_LIT>" : PyOrientSecurityAccessException , <EOL> "<STR_LIT>" : PyOrientORecordDuplicatedException , <EOL> "<STR_LIT>" : PyOrientSchemaException , <EOL> "<STR_LIT>" : PyOrientIndexException <EOL> } <EOL> if _errorClass in x . keys ( ) : <EOL> self . __class__ = x [ _errorClass ] <EOL> Exception . __init__ ( self , message ) <EOL> self . errors = errors <EOL> def __str__ ( self ) : <EOL> if self . errors : <EOL> return "<STR_LIT>" % ( Exception . __str__ ( self ) , self . errors [ <NUM_LIT:0> ] ) <EOL> else : <EOL> return Exception . __str__ ( self ) <EOL> class PyOrientConnectionException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientConnectionPoolException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientSecurityAccessException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientDatabaseException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientSQLParsingException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientCommandException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientSchemaException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientIndexException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientORecordDuplicatedException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientBadMethodCallException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientWrongProtocolVersionException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientSerializationException ( PyOrientException ) : <EOL> pass <EOL> class PyOrientNullRecordException ( PyOrientException ) : <EOL> pass </s>
