createError(err) {
    if (!this.core) {
      Log.warn(this.name, 'Core is not set. Error: ', err)
      return
    }
    this.core.trigger(Events.ERROR, err)
  }
creates and trigger an error.
@method createError
@param {Object} err should be an object with code, description, level, origin, scope and raw error.