Difference between revisions of "CALicense::ErrorText"
(Created page with "<< Back to CALicense = property string CALicense::ErrorText = Status text reason for failure) from the previous CALicense method call. In particular, a...") |
(Marked this version for translation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[Category:ADE User Guide]] |
− | + | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CALicense]] | |
− | = property string [[CALicense]]::ErrorText = | + | <languages /> |
+ | <translate> | ||
+ | = property string [[CALicense]]::ErrorText = <!--T:1--> | ||
+ | <!--T:2--> | ||
Status text reason for failure) from the previous [[CALicense]] method call. In particular, after calling the [[CALicense::NewCAEngine|NewCAEngine]] method, this provides information about the cause of the failure. | Status text reason for failure) from the previous [[CALicense]] method call. In particular, after calling the [[CALicense::NewCAEngine|NewCAEngine]] method, this provides information about the cause of the failure. | ||
+ | <!--T:3--> | ||
The error number can be obtained using the [[CALicense::ErrorCode|ErrorCode]] property. Some codes that could encountered (this is not comprehensive) include: | The error number can be obtained using the [[CALicense::ErrorCode|ErrorCode]] property. Some codes that could encountered (this is not comprehensive) include: | ||
:71 – “The maximum number of CAEngine instances allowed are already in use” | :71 – “The maximum number of CAEngine instances allowed are already in use” | ||
Line 13: | Line 17: | ||
:76 – “Not an application license code” (from SetApplicationLicenseCode method) | :76 – “Not an application license code” (from SetApplicationLicenseCode method) | ||
+ | <!--T:4--> | ||
The [[CAEngine]] object has property with the same name (and it uses a consistent set of error codes with this one). Once you have a [[CAEngine]] instance, you will need to check its [[CAEngine::ErrorText|ErrorText]] property -- not the ErrorText property of the [[CALicense]]. Use this [[CALicense::ErrorText]] only to catch errors during instantiation of the [[CAEngine]]. | The [[CAEngine]] object has property with the same name (and it uses a consistent set of error codes with this one). Once you have a [[CAEngine]] instance, you will need to check its [[CAEngine::ErrorText|ErrorText]] property -- not the ErrorText property of the [[CALicense]]. Use this [[CALicense::ErrorText]] only to catch errors during instantiation of the [[CAEngine]]. | ||
− | == Data Type == | + | == Data Type == <!--T:5--> |
+ | <!--T:6--> | ||
string | string | ||
− | == Access == | + | == Access == <!--T:7--> |
+ | <!--T:8--> | ||
read | read | ||
− | = Example usage = | + | = Example usage = <!--T:9--> |
− | == C# == | + | == C# == <!--T:10--> |
− | CALicense lic = new ADE.CALicense(); | + | <!--T:11--> |
+ | CALicense lic = new ADE.CALicense(); | ||
CAEngine ade = lic.NewCAEngine(); | CAEngine ade = lic.NewCAEngine(); | ||
if ( ade == null) { | if ( ade == null) { | ||
Line 35: | Line 43: | ||
... | ... | ||
− | = See Also = | + | = See Also = <!--T:12--> |
+ | <!--T:13--> | ||
* [[CALicense::NewCAEngine]] method | * [[CALicense::NewCAEngine]] method | ||
* [[CALicense::ErrorCode]] | * [[CALicense::ErrorCode]] | ||
+ | </translate> |
Latest revision as of 01:29, 16 June 2015
ADE User Guide > ADE Server Class Reference > CALicense
property string CALicense::ErrorText
Status text reason for failure) from the previous CALicense method call. In particular, after calling the NewCAEngine method, this provides information about the cause of the failure.
The error number can be obtained using the ErrorCode property. Some codes that could encountered (this is not comprehensive) include:
- 71 – “The maximum number of CAEngine instances allowed are already in use”
- 72 – “Invalid license code”
- 73 – “Stale license code”
- 74 – “Expired license code”
- 75 – “No ADE license code is present”
- 76 – “Not an application license code” (from SetApplicationLicenseCode method)
The CAEngine object has property with the same name (and it uses a consistent set of error codes with this one). Once you have a CAEngine instance, you will need to check its ErrorText property -- not the ErrorText property of the CALicense. Use this CALicense::ErrorText only to catch errors during instantiation of the CAEngine.
Data Type
string
Access
read
Example usage
C#
CALicense lic = new ADE.CALicense(); CAEngine ade = lic.NewCAEngine(); if ( ade == null) { MessageBox.Show( "Error " + lic.ErrorCode + ": " + lic.ErrorText, "ADE could not be started", MessageBoxButtons.OK ); return } ...
See Also
Comments
Enable comment auto-refresher