Class | Fusioncharts::Exporter::FcError |
In: |
lib/fusioncharts/exporter/fc_error.rb
|
Parent: | Object |
Class to hold the errors and warnings. The error code is stored in a string and warning codes are stored in an array. Contains methods to add warning or set error code. Also contains methods to access the warning codes, error code, warning messages, error message and methods to convert the errors and warnings to other formats like query string or html.
err_code | [R] | Error code |
warn_codes | [R] | Warning codes. |
Adds a warning to this FcError.
Converts the error to html format. If there is an error, then adds successful status message and statusCode as 1. Else, sets the statusMessage as the error message and statusCode as 0.
Converts the error to QueryString. If there is an error, then adds successful status message and statusCode as 1. Else, sets the statusMessage as the error message and statusCode as 0.
Sets the error code for this FcError.
Converts the warnings to query string format. Returns a string starting with "¬ice="