@maxmind/geoip2-node
    Preparing search index...

    Class BadMethodCallError

    This error is thrown if the database file and the reader method do not match. e.g. reader.city is used with a Country database

    Hierarchy

    • Error
      • BadMethodCallError
    Index

    Constructors

    Properties

    message: string
    name: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void