<s> import sys <EOL> from boto . compat import json <EOL> from boto . exception import BotoServerError <EOL> def simple ( e ) : <EOL> code = e . code <EOL> if code . endswith ( '<STR_LIT>' ) : <EOL> code = code . rstrip ( '<STR_LIT>' ) <EOL> try : <EOL> simple_e = getattr ( sys . modules [ __name__ ] , code ) ( e ) <EOL> except AttributeError : <EOL> return e <EOL> return simple_e <EOL> class SimpleException ( BotoServerError ) : <EOL> def __init__ ( self , e ) : <EOL> super ( SimpleException , self ) . __init__ ( e . status , e . reason , e . body ) <EOL> self . error_message = self . message <EOL> def __repr__ ( self ) : <EOL> return self . __class__ . __name__ + '<STR_LIT>' + self . error_message <EOL> def __str__ ( self ) : <EOL> return self . __class__ . __name__ + '<STR_LIT>' + self . error_message <EOL> class ValidationError ( SimpleException ) : pass <EOL> class IncompleteSignature ( SimpleException ) : pass <EOL> class InternalFailure ( SimpleException ) : pass <EOL> class InvalidAction ( SimpleException ) : pass <EOL> class InvalidClientTokenId ( SimpleException ) : pass <EOL> class InvalidParameterCombination ( SimpleException ) : pass <EOL> class InvalidParameterValue ( SimpleException ) : pass <EOL> class InvalidQueryParameter ( SimpleException ) : pass <EOL> class MalformedQueryString ( SimpleException ) : pass <EOL> class MissingAction ( SimpleException ) : pass <EOL> class MissingAuthenticationToken ( SimpleException ) : pass <EOL> class MissingParameter ( SimpleException ) : pass <EOL> class OptInRequired ( SimpleException ) : pass <EOL> class RequestExpired ( SimpleException ) : pass <EOL> class ServiceUnavailable ( SimpleException ) : pass <EOL> class Throttling ( SimpleException ) : pass <EOL> class TooManyApplications ( SimpleException ) : pass <EOL> class InsufficientPrivileges ( SimpleException ) : pass <EOL> class S3LocationNotInServiceRegion ( SimpleException ) : pass <EOL> class TooManyApplicationVersions ( SimpleException ) : pass <EOL> class TooManyConfigurationTemplates ( SimpleException ) : pass <EOL> class TooManyEnvironments ( SimpleException ) : pass <EOL> class S3SubscriptionRequired ( SimpleException ) : pass <EOL> class TooManyBuckets ( SimpleException ) : pass <EOL> class OperationInProgress ( SimpleException ) : pass <EOL> class SourceBundleDeletion ( SimpleException ) : pass </s>
