LastError
Assembly: ZennoLab.InterfacesLibrary
Full name: ZennoLab.InterfacesLibrary.ProjectModel.LastError
Kind: class
Contains information of last error of project.
This class can be used in action OwnCode (C# or PHP) of ProjectMaker.
Constructor
LastError()
Constructor
Properties
ActionId
Property
string ActionId { get; set; }
Gets an ID of action with an error.
Example
LastError error = project.GetLastError();
string tmp = "";
if(error != null)
tmp = string.Format("ProjectName: {0}.\r\nActionComment: {1}.\r\nActionGroupId: {2}.\r\nActionId: {3}", error.ProjectName, error.ActionComment, error.ActionGroupId, error.ActionId);
return tmp;ActionGroupId
Property
string ActionGroupId { get; set; }
Gets an ID of group of action with an error.
Example
LastError error = project.GetLastError();
string tmp = "";
if(error != null)
tmp = string.Format("ProjectName: {0}.\r\nActionComment: {1}.\r\nActionGroupId: {2}.\r\nActionId: {3}", error.ProjectName, error.ActionComment, error.ActionGroupId, error.ActionId);
return tmp;ActionComment
Property
string ActionComment { get; set; }
Gets a comment of action with an error.
Example
LastError error = project.GetLastError();
string tmp = "";
if(error != null)
tmp = string.Format("ProjectName: {0}.\r\nActionComment: {1}.\r\nActionGroupId: {2}.\r\nActionId: {3}", error.ProjectName, error.ActionComment, error.ActionGroupId, error.ActionId);
return tmp;Exception
Property
Exception Exception { get; set; }
Gets exception of action with an error.
Example
LastError error = project.GetLastError();
string tmp = "";
if(error != null && error.Exception != null)
tmp = error.Exception.Message;
return tmp;ProjectName
Property
string ProjectName { get; set; }
Gets the project name.
Example
LastError error = project.GetLastError();
string tmp = "";
if(error != null)
tmp = string.Format("ProjectName: {0}.\r\nActionComment: {1}.\r\nActionGroupId: {2}.\r\nActionId: {3}", error.ProjectName, error.ActionComment, error.ActionGroupId, error.ActionId);
return tmp;