<s> """<STR_LIT>""" <EOL> import locations <EOL> class Error ( Exception ) : <EOL> pass <EOL> class AmbiguousArgNameError ( Error ) : <EOL> def __init__ ( self , injection_site_desc , binding_key , bindings ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> injection_site_desc , binding_key , '<STR_LIT:\n>' . join ( <EOL> '<STR_LIT>' . format ( b . get_binding_target_desc_fn ( ) ) <EOL> for b in bindings ) ) ) <EOL> class BadDependencyScopeError ( Error ) : <EOL> def __init__ ( self , injection_site_desc , <EOL> from_scope_id , to_scope_id , binding_key ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> binding_key , injection_site_desc , to_scope_id , from_scope_id ) ) <EOL> class ConfigureMethodMissingArgsError ( Error ) : <EOL> def __init__ ( self , configure_fn , possible_args ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> locations . get_name_and_loc ( configure_fn ) , possible_args ) ) <EOL> class ConflictingExplicitBindingsError ( Error ) : <EOL> def __init__ ( self , colliding_bindings ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( '<STR_LIT:\n>' . join ( '<STR_LIT>' . format ( b ) <EOL> for b in colliding_bindings ) ) ) <EOL> class ConflictingRequiredBindingError ( Error ) : <EOL> def __init__ ( self , required_binding , colliding_bindings ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> required_binding . require_loc , required_binding . binding_key , <EOL> '<STR_LIT:\n>' . join ( '<STR_LIT>' . format ( b ) for b in colliding_bindings ) ) ) <EOL> class CyclicInjectionError ( Error ) : <EOL> def __init__ ( self , binding_stack ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> '<STR_LIT:\n>' . join ( '<STR_LIT>' . format ( b ) for b in binding_stack ) ) ) <EOL> class DecoratorAppliedToNonInitError ( Error ) : <EOL> def __init__ ( self , decorator_name , fn ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> decorator_name , locations . get_name_and_loc ( fn ) ) ) <EOL> class DirectlyPassingInjectedArgsError ( Error ) : <EOL> def __init__ ( self , duplicated_args , injection_site_desc , provider_fn ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> injection_site_desc , list ( duplicated_args ) , <EOL> locations . get_name_and_loc ( provider_fn ) ) ) <EOL> class DuplicateDecoratorError ( Error ) : <EOL> def __init__ ( self , decorator_name , second_decorator_loc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> second_decorator_loc , decorator_name ) ) <EOL> class EmptyBindingSpecError ( Error ) : <EOL> def __init__ ( self , binding_spec ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> binding_spec . __class__ . __name__ , <EOL> locations . get_loc ( binding_spec . __class__ ) ) ) <EOL> class EmptyProvidesDecoratorError ( Error ) : <EOL> def __init__ ( self , at_provides_loc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( at_provides_loc ) ) <EOL> class EmptySequenceArgError ( Error ) : <EOL> def __init__ ( self , call_site_loc , arg_name ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> arg_name , call_site_loc ) ) <EOL> class InjectingNoneDisallowedError ( Error ) : <EOL> def __init__ ( self , proviser_desc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( proviser_desc ) ) <EOL> class InvalidBindingTargetError ( Error ) : <EOL> def __init__ ( self , binding_loc , binding_key , binding_target , <EOL> expected_type_str ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> binding_key , binding_target , binding_loc , <EOL> type ( binding_target ) . __name__ , expected_type_str ) ) <EOL> class MissingRequiredBindingError ( Error ) : <EOL> def __init__ ( self , required_binding ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( required_binding . require_loc , <EOL> required_binding . binding_key ) ) <EOL> class MultipleAnnotationsForSameArgError ( Error ) : <EOL> def __init__ ( self , arg_binding_key , decorator_loc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> arg_binding_key , decorator_loc ) ) <EOL> class MultipleBindingTargetArgsError ( Error ) : <EOL> def __init__ ( self , binding_loc , binding_key , arg_names ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( arg_names , binding_key , binding_loc ) ) <EOL> class NoBindingTargetArgsError ( Error ) : <EOL> def __init__ ( self , binding_loc , binding_key ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> binding_key , binding_loc ) ) <EOL> class NoRemainingArgsToInjectError ( Error ) : <EOL> def __init__ ( self , decorator_loc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' . format ( decorator_loc ) ) <EOL> class NoSuchArgError ( Error ) : <EOL> def __init__ ( self , call_site_loc , arg_name ) : <EOL> Error . __init__ ( self , '<STR_LIT>' . format ( <EOL> call_site_loc , arg_name ) ) <EOL> class NoSuchArgToInjectError ( Error ) : <EOL> def __init__ ( self , decorator_loc , arg_binding_key , fn ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> arg_binding_key , fn . __name__ , decorator_loc ) ) <EOL> class NonExplicitlyBoundClassError ( Error ) : <EOL> def __init__ ( self , provide_loc , cls ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' . format ( provide_loc , cls . __name__ ) ) <EOL> class NothingInjectableForArgError ( Error ) : <EOL> def __init__ ( self , binding_key , injection_site_desc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> injection_site_desc , binding_key ) ) <EOL> class OnlyInstantiableViaProviderFunctionError ( Error ) : <EOL> def __init__ ( self , injection_site_fn , arg_binding_key , binding_target_desc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( <EOL> locations . get_name_and_loc ( injection_site_fn ) , <EOL> arg_binding_key , binding_target_desc ) ) <EOL> class OverridingDefaultScopeError ( Error ) : <EOL> def __init__ ( self , scope_id ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( scope_id ) ) <EOL> class PargsDisallowedWhenCopyingArgsError ( Error ) : <EOL> def __init__ ( self , decorator_name , fn , pargs_arg_name ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> decorator_name , locations . get_name_and_loc ( fn ) , pargs_arg_name ) ) <EOL> class TooManyArgsToInjectDecoratorError ( Error ) : <EOL> def __init__ ( self , decorator_loc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( decorator_loc ) ) <EOL> class UnknownScopeError ( Error ) : <EOL> def __init__ ( self , scope_id , binding_loc ) : <EOL> Error . __init__ ( self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( scope_id , binding_loc ) ) <EOL> class WrongArgElementTypeError ( Error ) : <EOL> def __init__ ( self , arg_name , idx , expected_type_desc , actual_type_desc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' <EOL> '<STR_LIT>' . format ( idx , arg_name , expected_type_desc , actual_type_desc ) ) <EOL> class WrongArgTypeError ( Error ) : <EOL> def __init__ ( self , arg_name , expected_type_desc , actual_type_desc ) : <EOL> Error . __init__ ( <EOL> self , '<STR_LIT>' . format ( <EOL> arg_name , expected_type_desc , actual_type_desc ) ) </s>
