heron/tools/ui/src/python/handlers/base.py
def write_error(self, status_code, **kwargs):
    '''
    :param status_code:
    :param kwargs:
    :return:
    '''
    if "exc_info" in kwargs:
      exc_info = kwargs["exc_info"]
      error = exc_info[1]

      errormessage = "%s: %s" % (status_code, error)
      self.render("error.html", errormessage=errormessage)
    else:
      errormessage = "%s" % (status_code)
      self.render("error.html", errormessage=errormessage)
def write_error(self, status_code, **kwargs):
    '''
    :param status_code:
    :param kwargs:
    :return:
    '''
    if "exc_info" in kwargs:
      exc_info = kwargs["exc_info"]
      error = exc_info[1]

      errormessage = "%s: %s" % (status_code, error)
      self.render("error.html", errormessage=errormessage)
    else:
      errormessage = "%s" % (status_code)
      self.render("error.html", errormessage=errormessage)
def write_error ( self , status_code , * * kwargs ) : if "exc_info" in kwargs : exc_info = kwargs [ "exc_info" ] error = exc_info [ 1 ] errormessage = "%s: %s" % ( status_code , error ) self . render ( "error.html" , errormessage = errormessage ) else : errormessage = "%s" % ( status_code ) self . render ( "error.html" , errormessage = errormessage )
:param status_code:
    :param kwargs:
    :return:
: param status_code : : param kwargs : : return :