Error Suite
Detailed Description
The Error Suite provides a way to display error strings to the user in any format.
Photoshop always makes a copy of the string passed in. The Error Suite is available in Adobe Photoshop 5.0 and later.
Accessing the Suite
The Error suite is referred to as: #define kPSErrorSuite "Photoshop Error Suite for Plug-ins"
The current version of the error suite: #define kPSErrorSuiteVersion1 1
The suite is acquired as follows: For PICA errors, see SPErrorCodes.h.
|
Data Structures |
| struct | PSErrorSuite1 |
| | The set of routines available in the Error Suite. More...
|
Defines |
| #define | kPSErrorSuite "Photoshop Error Suite for Plug-ins" |
| | Unique identifier for the Error Suite.
|
| #define | kPSErrorSuiteVersion1 1 |
| | Current version of the Error Suite.
|
Typedefs |
| typedef SPAPI SPErr(*) | SetErrorFromPStringProc (const Str255 errorString) |
| | Hands the host a Pascal string containing the error string to display to the user.
|
| typedef SPAPI SPErr(*) | SetErrorFromCStringProc (const char *errorString) |
| | Hands the host a C string containing the error string to display to the user.
|
| typedef SPAPI SPErr(*) | SetErrorFromZStringProc (const ASZString zString) |
| | Hands the host a ZString containing the error string to display to the user.
|
Define Documentation
| #define kPSErrorSuite "Photoshop Error Suite for Plug-ins" |
Unique identifier for the Error Suite.
| #define kPSErrorSuiteVersion1 1 |
Current version of the Error Suite.
Typedef Documentation
Hands the host a Pascal string containing the error string to display to the user.
- Parameters:
-
| errorString | The Pascal string to display to the user. The host makes a copy. |
- Returns:
- Non-zero error if failure.
Hands the host a C string containing the error string to display to the user.
- Parameters:
-
| errorString | The C string to display to the user. The host makes a copy. |
- Returns:
- Non-zero error if failure.
Hands the host a ZString containing the error string to display to the user.
- Parameters:
-
| zString | The ZString to display to the user. The host makes a copy. |
- Returns:
- Non-zero error if failure.
|