/**
 * All library exceptions must inherit this class.
 */ export class GeocoderException extends Error { constructor ( message , private readonly payload ? ) { super ( message ) ; this . name = this . constructor . name ; if ( Error . captureStackTrace ) { Error . captureStackTrace ( this , this . constructor ) ; } } getPayload ( ) { return this . payload ; } }