ErrorManager
processError(error) => FlexError#
Processes a FlexError
Parameters:
error: FlexErrorError to be processed
Returns:
FlexErrorThe processed error
Example:
ErrorManager.processError(new FlexError("no connection", {description: "There was no internet connection"})); // creates and processes an errorcreateAndProcessError(message, content) => FlexError#
Creates and processes a FlexError
Parameters:
message: stringmessage field of FlexError
content: FlexErrorContentspart of FlexError
type?: FlexErrorType- Type of the errorwrappedError?: Error- The original errorplugin?: FlexError.PluginInfo- Information about the plugin where the error occured (if applicable)context?: string- Error context, including theme customizationsdescription?: string- Longer and more verbose description of the error than message property, possibly with variable metadataseverity?: FlexErrorSeverity- Severity level of the error
Returns:
FlexErrorAn instance of FlexError
Example:
ErrorManager.createAndProcessError( "no connection", {description: "There was no internet connection", context:"some context"});