Application.getLastError Method

Parent Object: Application
Defined in namespace "adsk::core" and the header file is <Core/Application/Application.h>

Description

Returns information about the last error that occurred.

Syntax

"application_var" is a variable referencing an Application object.

# Uses no optional arguments.
(returnValue, description) = application_var.getLastError()

# Uses optional arguments.
(returnValue, description) = application_var.getLastError()

#include <Core/Application/Application.h

// Uses no optional arguments.
// Declare the output arguments.
integer returnValue = application_var->getLastError();

// Uses optional arguments.
// Declare the output arguments.
string description;

// Call the function.
Ptr<Application> returnValue = application_var->getLastError(description);

Return Value

Type Description
integer Returns the number of the specific error.

Parameters

Name Type Description
description string A description of the last error in English.

This is an optional argument whose default value is "".

Version

Introduced in version August 2014