get error()

in src/api-response.js [73:84]


  get error(): any {
    if (this.isSuccess) {
      return null;
    }

    return new FacebookRequestError(
      this._response,
      this._call.method,
      this._call.relativeUrl,
      this._call.body,
    );
  }