       new KDNotificationView
         title   : err.message
         duration: 1000
+
+  setFailureNotice: ({cssClass, title, message}) ->
+    @failureNotice.setClass cssClass  if cssClass
+    @failureNotice.updatePartial \
+      """
+      <strong>#{title}</strong>
+      <p>#{message}</p>
+      """

        when "resendEmail"
          @$('.flex-wrapper').addClass 'one'
          @resendForm.usernameOrEmail.input.setFocus()

  getRouteWithEntryPoint:(route)->
    {entryPoint} = KD.config

      domId    : "invite-recovery-notification-bar"
      cssClass : "invite-recovery-notification-bar hidden"
      partial  : "..."

    @failureNotice = new KDCustomHTMLView
      cssClass     : "failure-notice hidden"

    KD.getSingleton("mainController").on "landingSidebarClicked", => @unsetClass 'landed'

