# File lib/fusioncharts/exporter/error_handler.rb, line 16
    def self.set_flash_err(fc_error,flash,is_html,meta,file_name=nil)
         error_msgs = is_html ? fc_error.error2html : fc_error.error2qs
         warning_msgs= is_html ? fc_error.warnings2html : fc_error.warnings2qs
         flash[:notice]=warning_msgs
         flash[:error]=error_msgs
         separator = (is_html ? "<br>" : "&")
         meta_new = meta!=nil ? meta : Array.new
         if(!fc_error.empty?) 
           # This means error has occured, hence statusCode=0
           # Values for width and height are 0 in case of error. FileName is empty.
           width ="0"
           height="0"
           display_path=""
           meta_new.update({"width"=>width,"height"=>height})
         else 
           # status code =1
           flash[:error]+=separator+"statusCode=1"
           # Values for width and height in case of success. file_name is path to the file on server.
          display_path =Fusioncharts::Exporter::Properties.HTTP_URI.gsub!(/\/$/, '') + "/" +file_name
         end
            # Whether success or failure, add file URI , width and height and DomId when status success
             flash[:error]+= is_html ? meta2html(meta_new,display_path) : meta2qs(meta_new,display_path) 
       end