def get_exceptions(self, package):
    'Get specific exceptions for given package.'
    exceptions = {'file': [], 'message_regex': []}
    if (('global' in self.exceptions) and ('exceptions' in self.exceptions['global'])):
        global_exceptions = self.exceptions['global']['exceptions']
        if ('file' in global_exceptions):
            exceptions['file'] += global_exceptions['file']
        if ('message_regex' in global_exceptions):
            exceptions['message_regex'] += global_exceptions['message_regex']
    if (self.exceptions and ('packages' in self.exceptions) and self.exceptions['packages'] and (package.name in self.exceptions['packages']) and self.exceptions['packages'][package.name] and ('exceptions' in self.exceptions['packages'][package.name])):
        package_exceptions = self.exceptions['packages'][package.name]['exceptions']
        if ('file' in package_exceptions):
            exceptions['file'] += package_exceptions['file']
        if ('message_regex' in package_exceptions):
            exceptions['message_regex'] += package_exceptions['message_regex']
    return exceptions
Get specific exceptions for given package.
def get_exceptions(self, package):
    
    exceptions = {'file': [], 'message_regex': []}
    if (('global' in self.exceptions) and ('exceptions' in self.exceptions['global'])):
        global_exceptions = self.exceptions['global']['exceptions']
        if ('file' in global_exceptions):
            exceptions['file'] += global_exceptions['file']
        if ('message_regex' in global_exceptions):
            exceptions['message_regex'] += global_exceptions['message_regex']
    if (self.exceptions and ('packages' in self.exceptions) and self.exceptions['packages'] and (package.name in self.exceptions['packages']) and self.exceptions['packages'][package.name] and ('exceptions' in self.exceptions['packages'][package.name])):
        package_exceptions = self.exceptions['packages'][package.name]['exceptions']
        if ('file' in package_exceptions):
            exceptions['file'] += package_exceptions['file']
        if ('message_regex' in package_exceptions):
            exceptions['message_regex'] += package_exceptions['message_regex']
    return exceptions