Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CatTaskStatusFailed class: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "{{CGscriptClass_Template |Name=<nowiki>CatTaskStatusFailed</nowiki> |Description=<nowiki>Failure report for a cattask</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=..."
 
Nguyenduyan (talk | contribs)
No edit summary
Line 9: Line 9:
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
CatTaskScheduleHelper ct = new CatTaskScheduleHelper();
object e = ct.GetTaskStatusByInstanceId(104896);
print(e.ObjectTypeName);//CatTaskStatusFailed
print(e.Status);//Catglobe.Common.ErrorHandling.Exceptions.RuntimeException: Index was out of range. Must be non-negative and less than the size of the collection.
</source>

Revision as of 03:30, 13 July 2017

CatTaskStatusFailed



Failure report for a cattask


Methods

  • string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • string Status { get; } - Error report
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

CatTaskScheduleHelper ct = new CatTaskScheduleHelper();
object e = ct.GetTaskStatusByInstanceId(104896);
print(e.ObjectTypeName);//CatTaskStatusFailed
print(e.Status);//Catglobe.Common.ErrorHandling.Exceptions.RuntimeException: Index was out of range. Must be non-negative and less than the size of the collection.