Class Fusioncharts::Exporter::ErrorHandler
In: lib/fusioncharts/exporter/error_handler.rb
Parent: Object

Contains methods to help build the error message in case of any error during export.

Methods

Public Class methods

Builds the html string containing the meta values

  • parameter meta : The metadata values to be used.
  • parameter file_name_with_path : The name of the file saved along with the path, if any.

Builds the query string starting with & for meta values

  • parameter meta : The metadata values to be used.
  • parameter file_name_with_path : The name of the file saved along with the path, if any.

Sets the errors in flash object. These flash messages can later be output in error view page This method should ideally be called only once in the program execution. When an error occurs and the program halts and wants to show the error.

  • parameter fc_error : Instance of FcError containing errors and warnings for this request.
  • parameter flash : Instance of flash in which the errors need to be set
  • parameter is_html : Whether the error string constructed should be in html format or query string format.
  • parameter meta : The metadata values to be used.
  • parameter file_name : The name of the file saved, if any.

[Validate]