Product availability: PDFL |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define ASGetExceptionErrorCode ACGetExceptionErrorCode
File: CorCalls.h |
Line: 355 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define ASRaise ASRaiseImpl(err)
File: CorCalls.h |
Line: 421 |
Product availability: All |
Platform availability: All |
Syntax
#define DURING DURING usage must be compiled with C++
File: CorCalls.h |
Line: 236 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define DURING { \ _E_SUPPRESS_NESTED_DURING_HANDLER_WARNINGS \ ACROjmp_buf ASException; \ ASPushExceptionFrame(&ASException, &RestorePlugInFrame); \ if (!ACROsetjmp(ASException)) {
File: CorCalls.h |
Line: 732 |
Product availability: All |
Platform availability: All |
Syntax
#define END_HANDLER END_HANDLER usage must be compiled with C++
File: CorCalls.h |
Line: 238 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define END_HANDLER }}
File: CorCalls.h |
Line: 735 |
Product availability: All |
Platform availability: All |
Syntax
#define ERRORCODE (ACGetExceptionErrorCode())
DescriptionA macro defined to call ASGetExceptionErrorCode(). It returns an ASInt32 object containing an exception error code.
See Also
File: CorCalls.h |
Line: 298 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define ERRORCODE (ASGetExceptionErrorCode())
DescriptionA macro defined to call ASGetExceptionErrorCode(). It returns an ASInt32 object containing an exception error code.
See Also
File: CorCalls.h |
Line: 556 |
Product availability: All |
Platform availability: All |
Syntax
#define HANDLER HANDLER usage must be compiled with C++
File: CorCalls.h |
Line: 237 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define HANDLER _E_RESTORE; } else { _E_RESTORE;
File: CorCalls.h |
Line: 734 |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Syntax
#define RERAISE ASRaise(ERRORCODE)
DescriptionDeprecated in Acrobat 8.0. Re-raises the most recently raised exception and passes it to the next exception handler in the stack.
See Also
File: CorCalls.h |
Line: 554 |
Product availability: All |
Platform availability: All |
Syntax
An error code value for use in ASFile
and ASFileSys
methods and callbacks. Introduced in Acrobat 6.0.
Product availability: All |
Platform availability: All |
Syntax
Product availability: All |
Platform availability: All |
Syntax
void (*restoreEnvironProc)(void *asEnviron)
Environment-restoration functions are called when an exception is raised.
File: CoreExpT.h |
Line: 203 |
Product availability: All |
Platform availability: All |
Syntax
Gets a string describing the specified error/exception.
Parameters
| errorCode — | The exception whose error string is obtained. This must be a full error code, built with the ErrBuildCode() macro or a user-defined exception returned from ASRegisterErrorString(). See Errors for a list of predefined exceptions. |
|
| buffer — | (Filled by the method) A buffer into which the string is written. Make sure to memset the buffer to 0 before calling ASGetErrorString(). |
|
| lenBuffer — | The number of characters that buffer can hold. |
Returns
| A useful pointer to buffer . This does not mean that the function worked. You must call strlen on the returned buffer (as long as you memset the buffer to 0 ) to determine whether the error code was valid. |
See Also
Since
File: ASProcs.h |
Line: 138 |
Product availability: All |
Platform availability: All |
Syntax
Gets an ASText object containing a string describing the specified exception.
Parameters
| errorCode — | The exception whose error string is obtained. This must be a full error code, built with the ErrBuildCode macro or a user-defined exception returned from ASRegisterErrorString(). See Error Systems for a list of predefined exceptions. |
|
| errorString — | (Filled by the method) The text object containing the error string. The client must pass a valid ASText object. The routine does not allocate it. |
See Also
Since
File: ASProcs.h |
Line: 2792 |
Product availability: All |
Platform availability: All |
Syntax
Raises an exception. Plug-ins can raise any exception defined in the AcroErr.h header file using the ErrBuildCode
macro, or can define their own exceptions using ASRegisterErrorString(). See Errors for a list of predefined exceptions.
If the code that calls ASRaise() gets control as a result of a non-Acrobat event (such as a drag and drop event on some platforms), this method fails since there is no Acrobat viewer code in the stack to handle the exception.
Parameters
| error — | An error code for the exception to raise. Error codes have three parts: severity, system, and error number. Use ErrBuildCode to build an error code for an existing error. |
See Also
Since
File: CorProcs.h |
Line: 51 |
Product availability: All |
Platform availability: All |
Syntax
Registers a new error and string. The error can be used to raise a plug-in-specific exception using ASRaise(). When the exception is raised, its error string can be retrieved using ASGetErrorString() and reported to the user using AVAlertNote().
The error system is automatically forced to be ErrSysXtn. (See the list of Error Systems).
The error is automatically assigned an error code that is not used by any other plug-in (in the current implementation, the Acrobat viewer increments a counter each time any plug-in requests an error code, and returns the value of the counter). As a result, plug-ins cannot rely on being assigned the same error code each time the Acrobat viewer is launched.
Parameters
Returns
| The newly created error code. Plug-ins should assign the error code returned by this method to a variable if they will use the error code later in the current session. |
See Also
Since
File: ASProcs.h |
Line: 172 |
Product availability: All |
Platform availability: All |
Syntax
Registers a new error and string.
Parameters
| severity — | The severity of the error being defined. It must be one of the Error Severities. |
|
| errorString — | The text object containing the error string to be set. |
Returns
| The newly created error code. Plug-ins should assign the error code returned by this method to a variable if they wish to use the error code later in the current session. |
See Also
Since
File: ASProcs.h |
Line: 2811 |
Product availability: All |
Platform availability: All |
Syntax
void ACCB2 RestorePlugInFrame(void* environ) |
Parameters
Returns
File: CorCalls.h |
Line: 182 |
© 2004-2013 Adobe Systems Incorporated. All rights reserved.
Thu Jan 21 2016, 11:19 AM IST