'Raise exception for limits crossed'

def limits_crossed_error(self, args, item):

    frappe.throw(((_(u'This    document    is    over    limit    by    {0}    {1}    for    item    {4}.    Are    you    making    another    {3}    against    the    same    {2}?').format(frappe.bold(_(item[u'target_ref_field'].title())), frappe.bold(item[u'reduce_by']), frappe.bold(_(args.get(u'target_dt'))), frappe.bold(_(self.doctype)), frappe.bold(item.get(u'item_code'))) + u'<br><br>') + _(u'To    allow    over-billing    or    over-ordering,    update    "Allowance"    in    Stock    Settings    or    the    Item.')), title=_(u'Limit    Crossed'))
