<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> from __future__ import unicode_literals <EOL> class InvalidSpec ( Exception ) : <EOL> pass <EOL> class PipelineBuildError ( Exception ) : <EOL> def __init__ ( self , msg = None ) : <EOL> self . msg = msg or '<STR_LIT>' <EOL> class ProcessorBuildError ( Exception ) : <EOL> def __init__ ( self , msg = None ) : <EOL> self . msg = msg or '<STR_LIT>' <EOL> class DataSourceHTTPError ( Exception ) : <EOL> def __init__ ( self , msg = None , status = None , name = None ) : <EOL> from goodtables import compat <EOL> self . status = status <EOL> self . msg = msg or ( '<STR_LIT>' <EOL> '<STR_LIT>' ) . format ( compat . responses . get ( self . status , '<STR_LIT>' ) ) <EOL> self . name = name or '<STR_LIT>' . format ( compat . responses . get ( self . status , '<STR_LIT:http>' ) ) <EOL> class DataSourceFormatUnsupportedError ( Exception ) : <EOL> def __init__ ( self , msg = None , file_format = None , name = None ) : <EOL> self . file_format = file_format or '<STR_LIT>' <EOL> self . msg = msg or '<STR_LIT>' . format ( self . file_format . upper ( ) ) <EOL> self . name = name or '<STR_LIT>' . format ( self . file_format ) <EOL> class DataSourceDecodeError ( Exception ) : <EOL> def __init__ ( self , msg = None , name = None ) : <EOL> self . msg = msg or ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> self . name = name or '<STR_LIT>' <EOL> class DataSourceMalformatedError ( Exception ) : <EOL> def __init__ ( self , msg = None , file_format = None , name = None ) : <EOL> self . file_format = file_format or '<STR_LIT>' <EOL> self . msg = '<STR_LIT>' . format ( self . file_format , msg ) <EOL> self . name = name or '<STR_LIT>' . format ( self . file_format ) . title ( ) <EOL> class InvalidHandlerError ( Exception ) : <EOL> def __init__ ( self , msg = None ) : <EOL> self . msg = msg or '<STR_LIT>' </s>
