<s> '''<STR_LIT>''' <EOL> import inspect <EOL> class ArakoonError ( Exception ) : <EOL> '''<STR_LIT>''' <EOL> CODE = None <EOL> '''<STR_LIT>''' <EOL> class NoMagic ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class TooManyDeadNodes ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class NoHello ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class NotMaster ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class NotFound ( KeyError , ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class WrongCluster ( ValueError , ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class AssertionFailed ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class ReadOnly ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class OutsideInterval ( ValueError , ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class GoingDown ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class NotSupported ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class NoLongerMaster ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class InconsistentRead ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class MaxConnections ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> class UnknownFailure ( ArakoonError ) : <EOL> '''<STR_LIT>''' <EOL> CODE = <NUM_LIT> <EOL> ERROR_MAP = dict ( ( value . CODE , value ) for value in globals ( ) . itervalues ( ) <EOL> if inspect . isclass ( value ) <EOL> and issubclass ( value , ArakoonError ) <EOL> and value . CODE is not None ) <EOL> '''<STR_LIT>''' </s>
