Welcome
Error
1.0.0.0
Allows custom error displaying and logging as well as error reporting.
The Error Action Plugin can be used alone or in tandem with the normal AMS error functions.
Free to use and distribute.
Centauri Soldier
www.amspublic.com
centaurisoldier@gmail.com
2009 AMSPublic.com
Place the "Error" folder into your "AutoPlay Media Studio\Plugins\Action" folder.
Error.ClearLog
Error.DeleteLog
Error.Display
Error.Log
Error.LogAndDisplay
Error.Report
Error.SetLog
Error.ClearLog ( | (string) Log Name = "Error Log" ) |
Removes all data from an error log.
(string) The name of the log file to clear.
This action dose not return any value.
Error.DeleteLog ( | (string) Log Name = "Error Log" ) |
Deletes a log file.
(string) The name of the log to delete.
This action dose not return any value.
Error.Display ( | (string) Error Type = "Load", (string) Message = "Selected File Does Not Exist", (number) Icon Type = MB_ICONNONE, (boolean) Abort = false ) |
Show the user a custom error message.
(string) The type of error that will be displayed.
(string) The details of the error.
(number) The icon to display with the message.
Note: This parameter is ignored if the Abort attribute is set to true.
CONSTANT | VALUE | DESCRIPTION |
MB_ICONNONE | 0 | NA |
MB_ICONSTOP | 16 | NA |
MB_ICONQUESTION | 32 | NA |
MB_ICONEXCLAMATION | 48 | NA |
MB_ICONINFORMATION | 64 | NA |
(boolean) Whether or not to abort the current operation when this error is called.
Note: When set to true, the error will be in the form of the native lua error function (which cancels any operation in progress) as opposed to the normal AMS message dialog.
This action dose not return any value.
Error.Log ( | (string) Log Name = "Error Log", (string) Error Type = "Load", (string) Message = "Selected File Does Not Exist" ) |
Logs the last error in a previously-assigned error log file.
Note: The term "last error" applies only to errors generated by the Error plugin, not to the errors shown by the Application.GetLastError() function.
(string) The name of the log to which the error will be written.
(string) The type of error that will be displayed.
(string) The details of the error.
This action dose not return any value.
Error.LogAndDisplay ( | (string) Log Name = "Error Log", (string) Error Type = "Load", (string) Message = "Selected File Does Not Exist", (number) Icon Type = MB_ICONNONE, (boolean) Abort = false ) |
Show the user a custom error message and logs it in a previously-assigned error log file.
(string) The name of the log to which the error will be written.
(string) The type of error that will be displayed.
(string) The details of the error.
(number) The icon to display with the message.
CONSTANT | VALUE | DESCRIPTION |
MB_ICONNONE | 0 | NA |
MB_ICONSTOP | 16 | NA |
MB_ICONQUESTION | 32 | NA |
MB_ICONEXCLAMATION | 48 | NA |
MB_ICONINFORMATION | 64 | NA |
(boolean) Whether or not to abort the current operation when this error is called.
Note: When set to true, the error will be in the form of the native lua error function (which cancels any operation in progress) as opposed to the normal AMS message dialog.
This action dose not return any value.
Error.Report ( | (string) Email Address = "me@mysite.com", (variant) Generator Name = "My Program", (string) Seperator Symbol = "-" ) |
Reports an error to a specified email address.
(string) The email address to which the error report will be sent.
(variant) The name that will appear at the bottom of the email as the source of the report. To have no report source listed, set this parameter to nil
(string) The symbol that will be above and below the "Generated by" text at the bottom of the email. This can be left blank for no symbol. This parameter is ignored of Generator Name is set to nil.
This action dose not return any value.
(string) Error.SetLog ( | (string) Log Name = "Error Log", (string) Filename = "C:\\Error Log File.log" ) |
Assigns a name to a file for error logging.
(string) The name to call the log.
(string) The actual error log file.
(string) Returns the log name assigned to the specified file.
2009 AMSPublic.com
This File Was Generated With AMS ActionFile Editor