![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
A class for retrieving the result of some operation.
The default constructor
Murl.Result new()
Clear the result (Set OK).
Clear()
Set a result from a given other result.
Set(Murl.Result other)
other | The result object to copy from. |
Append a given other result.
Append(Murl.Result other)
other | The result object to copy from. |
Check if the contained result is OK.
Boolean IsClear()
Check if the result contains at least one info.
Boolean HasInfo()
Get the number of infos.
Integer GetNumberOfInfos()
Get the code of a info at a given index.
Murl.IEnums.ResultCode GetInfoCode(Integer index)
index | The info index, in the range [0..GetNumberOfInfos()-1]. |
Get the message of a info at a given index.
String GetInfoMessage(Integer index)
index | The info index, in the range [0..GetNumberOfInfos()-1]. |
Get all info messages. This method concatenates all existing infos to one string, each one delimited by a single line feed character.
String GetAllInfoMessages()
Check if the result contains at least one warning.
Boolean HasWarning()
Get the number of warnings.
Integer GetNumberOfWarnings()
Get the code of a warning at a given index.
Murl.IEnums.ResultCode GetWarningCode(Integer index)
index | The warning index, in the range [0..GetNumberOfWarnings()-1]. |
Get the message of a warning at a given index.
String GetWarningMessage(Integer index)
index | The warning index, in the range [0..GetNumberOfWarnings()-1]. |
Get all warning messages. This method concatenates all existing warnings to one string, each one delimited by a single line feed character.
String GetAllWarningMessages()
Check if the result contains at least one error.
Boolean HasError()
Get the number of errors.
Integer GetNumberOfErrors()
Get the code of a error at a given index.
Murl.IEnums.ResultCode GetErrorCode(Integer index)
index | The error index, in the range [0..GetNumberOfErrors()-1]. |
Get the message of a error at a given index.
String GetErrorMessage(Integer index)
index | The error index, in the range [0..GetNumberOfErrors()-1]. |
Get all error messages. This method concatenates all existing errors to one string, each one delimited by a single line feed character.
String GetAllErrorMessages()
Get all messages. This method concatenates all existing errors, warnings and infos to one string, each one delimited by a single line feed character.
String GetAllMessages()