     if !goog.DEBUG
       @reporter = goog.debug.ErrorReporter.install @routes.api.clientErrors.url()
 
+  @APP_ERROR_MSG: goog.getMsg 'Application error. Please reload browser.'
+  @CONNECTION_ERROR_MSG: goog.getMsg 'Connection error. Check your connection please.'
+
   ###*
     @param {string} action
     @param {*} reason

    @return {boolean}
  ###
  isWorthReport_: (reason) ->
    # 404 is common.
    return false if reason == 404
    # Cancellation is ok. For example este.Router cancels aborted requests.
    return false if reason instanceof goog.Promise.CancellationError
    # User is offline. It happens.
    if reason instanceof app.Xhr.OfflineError
      alert reason.message
      return false
    true



    # TODO: Show something more beautiful then alert. Add button to reload app.
    # Auto-reload is bad idea because it can cause reload looping.
    alert ErrorReporter.APP_ERROR_MSG

    if !@isAlreadyReported_ reason
      @reporter?.setAdditionalArguments
