| MGError Object |
|
The MGError object contains error diagnostic information about the most recently executed API method.
Each time the Autodesk MapGuide Viewer application calls an API method, the existing MGError object expires, and a new one is created.
You can get the most recent instance of the MGError object with MGMap.getLastError.
Java Development for Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGError extends java.lang.Object and can be found in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.
Java Development for Autodesk MapGuide Viewer, Java Edition: For Autodesk MapGuide Viewer, Java Edition, MGError is a Java interface that resides in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms).
|
Gets the number of an incorrect argument in the event that an illegal argument is passed. |
|
|
Gets the error code of the MGError object. |
|
|
Returns the error status of the MGError object. |
Note that direct access to properties is only available in Autodesk MapGuide Viewer ActiveX Control. In Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer, Java Edition APIs, get/set methods provide access to an object's properties. For compatibility, the ActiveX Control API supports the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition APIs.
|
The number of the incorrect argument in the case of an illegal argument. |
|
|
The error code in the MGError object. |
|
|
The error status in the MGError object. |