# Path: aerofiles/errors.py
# class ParserError(RuntimeError):
#     pass


import re
import csv
from aerofiles.errors import ParserError
                        {
                            'name': self.decode_task_name(fields),
                            'waypoints': self.decode_task_waypoints(fields),
                            'options': None,
                            'obs_zones': []
                        }
                    )
            else:
                waypoint = self.decode_waypoint(fields)
                if waypoint:
                    waypoints.append(waypoint)

        return dict(waypoints=waypoints, tasks=tasks)

    def decode_waypoint(self, fields):
        # Ignore header line
        if fields == ['name', 'code', 'country', 'lat', 'lon', 'elev',
                      'style', 'rwdir', 'rwlen', 'freq', 'desc']:
            return

        # Ignore empty lines
        num_fields = len(fields)
        if num_fields == 0:
            return

        # Ignore comments
        if fields[0].startswith('*'):
            return

        if num_fields < 11:

# Path: aerofiles/errors.py
# class ParserError(RuntimeError):
#     pass


# Path: aerofiles/seeyou/reader.py
import re
import csv
from aerofiles.errors import ParserError

                        {
                            'name': self.decode_task_name(fields),
                            'waypoints': self.decode_task_waypoints(fields),
                            'options': None,
                            'obs_zones': []
                        }
                    )
            else:
                waypoint = self.decode_waypoint(fields)
                if waypoint:
                    waypoints.append(waypoint)

        return dict(waypoints=waypoints, tasks=tasks)

    def decode_waypoint(self, fields):
        # Ignore header line
        if fields == ['name', 'code', 'country', 'lat', 'lon', 'elev',
                      'style', 'rwdir', 'rwlen', 'freq', 'desc']:
            return

        # Ignore empty lines
        num_fields = len(fields)
        if num_fields == 0:
            return

        # Ignore comments
        if fields[0].startswith('*'):
            return

        if num_fields < 11:

            raise ParserError('Not enough fields provided. Expecting at minimum following 11 fileds:\nname,code,country,lat,lon,elev,style,rwdir,rwlen,freq,desc')