Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
edlerrors.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007-2025 Global Graphics Software Ltd. All rights reserved.
3 */
4
12
13#ifndef __EDLERRORS_H__
14#define __EDLERRORS_H__
15
16#include <typeinfo>
17#include <edl/edltypes.h>
18#include <edl/edlstring.h>
19
21
22typedef enum
23{
24 EDL_OK = 0,
25
26 // Commmon Errors 1..499
48
49 // JawsMako API-specific errors
75 JM_ERR_PCL = 124,
76 JM_ERR_PJL = 125,
87
88 // DOM Errors 500..999
103
104 // XPS specific errors
148
149 // XPS out specific errors
153
154 // Outline specific errors
158
159 // Annotation specific errors
162
163 // internal RIP erors
165
166 // PDF in specific errors
169
170 // PDF/PS-out specific errors
176
177 // Color specific errors
180
181 // Image specific errors
186
187 // ZIP specific errors
190
191
192 // License related errors
201
202 // General internal erors
204
206
221class EDL_API IEDLError : public std::exception
222{
223 public:
224 virtual uint32 getErrorCode() const = 0;
225 virtual EDLString getErrorDescription(const EDLString &formatErrorString) = 0;
226};
227
235
241
247EDL_API void throwEDLError(uint32 errorcode, const EDLString &message);
248
250
251#endif // __EDLERRORS_H__
An abstract class for EDL exceptions.
Definition edlerrors.h:222
virtual EDLString getErrorDescription(const EDLString &formatErrorString)=0
virtual uint32 getErrorCode() const =0
EDL_API EDLString getEDLErrorString(uint32 errorCode)
Implements a simple numeric-error-code-to-corresponding-language-specific-error-message-string look-u...
EDL_API void throwEDLError(uint32 errorcode)
Utility - Throw an IEDLError exception with the given error code.
#define _BEGIN_EDL_NAMESPACE
Definition edlnamespaces.h:75
#define _END_EDL_NAMESPACE
Definition edlnamespaces.h:76
EDLString and EDLSysString classes and associated EDL string manipulation functions.
std::wstring EDLString
Definition edlstring.h:165
EDL "standard" types including known bit-length signed and unsigned integer type[def]s and definition...
unsigned int uint32
Definition edltypes.h:34
#define EDL_API
Definition edltypes.h:86
EDLErrorCode
These result codes are returned by a Mako API as an unsigned integer result code. EDL_OK (0) indicate...
Definition edlerrors.h:23
@ EDL_ERR_INVALID_ABBR_PATH
XPS input: Error processing abbreviated path.
Definition edlerrors.h:121
@ JM_ERR_INVALID_RENDER_SPEC
Invalid render spec.
Definition edlerrors.h:86
@ EDL_ERR_NO_COLOR_NAME
No color name could be determined for the given colorant.
Definition edlerrors.h:102
@ EDL_ERR_DEVICE_OUTOFMEMORY
XPS output: Insufficient device memory to process page.
Definition edlerrors.h:151
@ EDL_ERR_PAGE_TOO_LARGE
A page was too large to be used.
Definition edlerrors.h:46
@ EDL_ERR_PRINTTICKET_EXISTS
XPS input: PrintTicket already exists.
Definition edlerrors.h:135
@ EDL_ERR_NO_REQ_ELEMENT
XPS input: Element is missing a required subelement.
Definition edlerrors.h:124
@ JM_ERR_ASSEMBLY_WRITE_FORBIDDEN
The given assembly cannot be written due to security permissions.
Definition edlerrors.h:65
@ EDL_ERR_INVALID_URI
XPS input: Invalid URI encountered.
Definition edlerrors.h:117
@ EDL_ERR_IMAGE_ENCODE_FAILURE
Image: An image could not be encoded.
Definition edlerrors.h:185
@ EDL_ERR_FALLBACK_BEFORE_CHOICE
XPS input: Fallback element has been found before choice.
Definition edlerrors.h:127
@ JM_ERR_APPEARANCE_NOT_FOUND
The required annotation appearance was not found.
Definition edlerrors.h:62
@ JM_ERR_APEX_VULKAN_LOADER_LIBRARY_FAILED
Apex failed to load the Vulkan loader library.
Definition edlerrors.h:84
@ JM_ERR_INFORMATION_NOT_AVAILABLE
The requested information is not yet available.
Definition edlerrors.h:68
@ EDL_ERR_NAMESPACE_NOT_UNDERSTOOD
XPS input: Namespace is not understood.
Definition edlerrors.h:122
@ EDL_ERR_LICENSE_BAD_AUTHMETHOD
Definition edlerrors.h:196
@ EDL_ERR_IOERROR
General IO error.
Definition edlerrors.h:37
@ EDL_ERR_INCOMPATIBLE_PDFA
PDF/A output: Incompatible content found.
Definition edlerrors.h:174
@ EDL_ERR_APPEND_ANNOTATION_WITHOUT_RECT
Definition edlerrors.h:161
@ EDL_ERR_APPEND_OUTLINE_TO_CLOSED_NODE
Outline: Attempt to append outline entry to a closed node.
Definition edlerrors.h:156
@ EDL_ERR_OUTOFMEMORY
Out of memory.
Definition edlerrors.h:32
@ EDL_ERR_PRESERVED_ITEMS_NOT_DECLARED_IGNORABLE
XPS input: Unable to preserve items! The namespace is not declared as ignorable.
Definition edlerrors.h:142
@ JM_ERR_PAGE_NOT_FOUND
The given page was not found in a document.
Definition edlerrors.h:55
@ EDL_ERR_FAILS_TO_ADD_OUTLINE_TO_METADATA_STORAGE
Outline: Failed to append an outline entry to the metadata storage node.
Definition edlerrors.h:157
@ EDL_ERR_ZIP_WRITE_ONLY
Zip: An attempt was made to retrieve a stream from a write-only Zip file.
Definition edlerrors.h:188
@ EDL_ERR_UNPREFIXED_ATTRIBUTE
XPS input: Unprefixed attribute encountered.
Definition edlerrors.h:129
@ EDL_ERR_MISSING_RESOURCE
XPS input: Missing resource.
Definition edlerrors.h:109
@ EDL_ERR_PREFIXED_ATTRIBUTE
XPS input: Prefixed attribute encountered.
Definition edlerrors.h:131
@ EDL_ERR_PANIC
Unstable state - abort the application.
Definition edlerrors.h:27
@ EDL_ERR_OPEN_PDF
PDF input: Error opening PDF.
Definition edlerrors.h:167
@ JM_ERR_INVALID_OPTIONAL_CONTENT
Invalid optional content information encountered.
Definition edlerrors.h:73
@ EDL_ERR_DICT_ITEM_PRESENT
XPS input: Multiple items with the same key present.
Definition edlerrors.h:137
@ JM_ERR_ATTEMPTED_WRITE_ON_OPEN_INPUT
An attempt was made to open a writable stream on a file a file referenced by an open input.
Definition edlerrors.h:82
@ EDL_ERR_READ
Read error.
Definition edlerrors.h:33
@ EDL_ERR_PROCESS_PART
XPS input: Error processing the part.
Definition edlerrors.h:107
@ EDL_ERR_PREFIX_NOT_DEFINED
XPS input: Undefined prefix encountered.
Definition edlerrors.h:128
@ JM_ERR_INCORRECT_PDF_OBJECT_TYPE
A PDF object of an invalid/unexpected type was encountered.
Definition edlerrors.h:80
@ EDL_ERR_IMAGE_PARAMETER_OUT_OF_RANGE
Image: An image parameter for encoding or decoding is outside the expected range.
Definition edlerrors.h:183
@ EDL_ERR_LICENSE_INVALID
License: License checking indicated that this license is invalid.
Definition edlerrors.h:195
@ EDL_ERR_NO_KEY_RESDICT_OBJECT
XPS input: Resource dictionary is missing the key attribute.
Definition edlerrors.h:119
@ EDL_ERR_LICENSE_LIMIT_REACHED
Definition edlerrors.h:197
@ EDL_ERR_MORE_THAN_ONE_ELEMENT
XPS input: Element has more than one instance of a subelement.
Definition edlerrors.h:125
@ JM_ERR_PJL
PJL Processing error.
Definition edlerrors.h:76
@ EDL_ERR_MISSING_REQ_ATTRIBUTE
XPS input: An element is missing a required attribute.
Definition edlerrors.h:111
@ JM_ERR_DOCUMENT_NOT_FOUND
The given document was not found in an assembly.
Definition edlerrors.h:56
@ EDL_OK
Definition edlerrors.h:24
@ EDL_ERR_VECTOR_ERROR
An out-of range value was accessed in a CEDLVector.
Definition edlerrors.h:43
@ JM_DUPLICATE_FIELD_PARTIAL_NAME
A field with a duplicate partial name was found.
Definition edlerrors.h:57
@ JM_ERR_BAD_CONFIGURATION
General configuration error.
Definition edlerrors.h:61
@ JM_ERR_TARGET_NOT_FOUND
A target with the given DOMid was not found.
Definition edlerrors.h:53
@ EDL_ERR_LICENSE_NO_REMAINING_ACTIVATIONS
Definition edlerrors.h:200
@ JM_ERR_FORM_FIELD_NOT_FOUND
The given form field was not found.
Definition edlerrors.h:58
@ EDL_ERR_INVALID_PDF_PASSWORD
PDF input: Error opening encrypted PDF; Invalid password and/or incorrect private key.
Definition edlerrors.h:168
@ EDL_ERR_IMAGE_DECODE_FAILURE
Image: An image could not be decoded.
Definition edlerrors.h:184
@ JM_ERR_INVALID_PDF_OBJECT
An invalid PDF object was encountered.
Definition edlerrors.h:79
@ EDL_ERR_UNDEFINED
Undefined error.
Definition edlerrors.h:28
@ EDL_ERR_XML_PARSER
XPS input: Parser error encountered.
Definition edlerrors.h:123
@ EDL_ERR_DELETE_OUTLINE_WITH_CLOSED_PARENT
Outline: Attempt to delete outline entry with closed parent.
Definition edlerrors.h:155
@ JM_ERR_REVERT_FAILED
An attempt was made to revert a page that could not be performed.
Definition edlerrors.h:52
@ EDL_ERR_MULTIPLE_STARTPARTS_RELS
XPS input: Multiple StartPart relationships encountered.
Definition edlerrors.h:136
@ EDL_ERR_LICENSE_DISABLED
Definition edlerrors.h:199
@ EDL_ERR_BAD_GEOMETRY
Bad path geometry was encountered.
Definition edlerrors.h:100
@ EDL_ERR_PSOUT_GENERAL_FAILURE
PS output: General error.
Definition edlerrors.h:171
@ EDL_ERR_COMPRESS
Compression error.
Definition edlerrors.h:38
@ EDL_ERR_ZIP_PATH_NOT_FOUND
Zip: An expected entry in a Zip package was not found.
Definition edlerrors.h:189
@ EDL_ERR_IMMUTABLE_GEOMETRY
An attempt was made to edit an immutable geometry element.
Definition edlerrors.h:101
@ JM_ERR_RESOURCE_NOT_FOUND
The requested resource could not be found.
Definition edlerrors.h:70
@ EDL_ERR_FILENOTFOUND
File not found.
Definition edlerrors.h:30
@ EDL_ERR_BAD_FONT
A bad font was encountered.
Definition edlerrors.h:99
@ JM_ERR_IJPDS
IJPDS Processing error.
Definition edlerrors.h:81
@ EDL_ERR_BOUNDS_CALCULATION_FAILED
An error was encountered while trying to find the bounds of a node.
Definition edlerrors.h:97
@ EDL_ERR_CORRUPT_PNG_IMAGE
Corrupt PNG image encountered.
Definition edlerrors.h:31
@ EDL_ERR_INVALID_THUMBNAIL_TYPE
XPS input: Invalid thumbnail type encountered.
Definition edlerrors.h:141
@ JM_ERR_APEX_NO_VULKAN_DEVICES
Apex failed to find any suitable Vulkan devices.
Definition edlerrors.h:85
@ EDL_ERR_NO_REQ_GROUP_ELEMENT
XPS input: Element requires one subelement.
Definition edlerrors.h:144
@ EDL_ERR_XPS_PROVIDER
XPS input: XPS provider error.
Definition edlerrors.h:108
@ EDL_ERR_INVALID_ZIP
XPS input: Invalid ZIP file encountered.
Definition edlerrors.h:105
@ EDL_ERR_ADD_OBJECT_RESDICT
XPS input: Error adding the element to the resource dictionary.
Definition edlerrors.h:120
@ EDL_ERR_INCOMPATIBLE_PDFX
PDF/X output: Incompatible content found.
Definition edlerrors.h:175
@ JM_ERR_ANNOTATION_INVALID
An invalid annotation was found.
Definition edlerrors.h:64
@ EDL_ERR_ABORTED
Job aborted by user.
Definition edlerrors.h:41
@ EDL_ERR_WRITE
Write failed.
Definition edlerrors.h:36
@ EDL_ERR_COLOR_CONVERSION_FAILURE
Color: Color conversion failed.
Definition edlerrors.h:179
@ EDL_ERR_NO_CONTENT_TYPE
XPS input: Unable to retrieve the content type for the part.
Definition edlerrors.h:106
@ EDL_ERR_CONFIG
Configuration error.
Definition edlerrors.h:39
@ EDL_ERR_BAD_FONT_MAP
An error was found in a FontMap file.
Definition edlerrors.h:44
@ EDL_ERR_OPENFORREAD
Open for read failed.
Definition edlerrors.h:47
@ JM_ERR_RANGE_ERROR
An attempt was made to request or add an item from the API with an out-of-bounds index.
Definition edlerrors.h:54
@ JM_ERR_UNSUPPORTED
An attempt was made to use an unsupported, unimplemented feature.
Definition edlerrors.h:51
@ JM_ERR_TOO_MANY_PDFOUT_WRITERS
There are too many PDF Out writers currently in progress.
Definition edlerrors.h:67
@ EDL_ERR_LICENSE_MISSING
License: License checking indicated that required license information is missing.
Definition edlerrors.h:193
@ EDL_ERR_BAD_BRUSH
A bad brush was encountered.
Definition edlerrors.h:91
@ EDL_ERR_INVALID_FONT
PDF output: Error processing a font.
Definition edlerrors.h:173
@ EDL_ERR_PDFOUT_GENERAL_FAILURE
PDF output: General error.
Definition edlerrors.h:172
@ EDL_ERR_MULTIPLE_DOCSTRUCTURE_RELS
XPS input: Multiple DocumentStructure relationships encountered.
Definition edlerrors.h:139
@ JM_ERR_DIRECTORY_DOESNT_EXIST
A required directory does not exist on disk.
Definition edlerrors.h:69
@ EDL_ERR_INCOMPATIBLE_IMAGE_PARAMETER
Image: An image encoder has been given an image or parameter that it cannot handle.
Definition edlerrors.h:182
@ EDL_ERR_DEFLATE
XPS input: Deflate error.
Definition edlerrors.h:118
@ EDL_ERR_BAD_COLOR_SPACE
Color: A bad color space was encountered.
Definition edlerrors.h:178
@ EDL_ERR_RESTRICTED_FONT
A restricted font has been encountered.
Definition edlerrors.h:40
@ EDL_ERR_INVALID_ATTRIBUTE
XPS input: An invalid attribute has been encountered in the element.
Definition edlerrors.h:112
@ EDL_ERR_DOM_CREATION_FAILED
Failure while attempting to create a DOM object.
Definition edlerrors.h:92
@ EDL_ERR_MISSING_XPS_PART
XPS input: Missing XPS part.
Definition edlerrors.h:134
@ EDL_ERR_UNICODE
An invalid Unicode string was encountered.
Definition edlerrors.h:45
@ EDL_ERR_NODE_ERROR
An error was encountered while manipulating a node.
Definition edlerrors.h:98
@ JM_ERR_ANNOTATION_NOT_FOUND
The required annotation was not found.
Definition edlerrors.h:63
@ EDL_ERR_NUMBER_REQ_ELEMENT
XPS input: Insufficient elements of a particular type encountered.
Definition edlerrors.h:133
@ EDL_ERR_BAD_ARGUMENTS
General error for bad arguments passed to an API function.
Definition edlerrors.h:42
@ EDL_ERR_LICENSE_BAD_CONFIG
License:
Definition edlerrors.h:194
@ JM_ERR_PCL
PCL5 Processing error.
Definition edlerrors.h:75
@ EDL_ERR_INVALID_ELEMENT
XPS input: Element contains an invalid subelement.
Definition edlerrors.h:126
@ EDL_ERR_INTERNAL
Internal Error.
Definition edlerrors.h:203
@ JM_ERR_BAD_UNICODE_CMAP
A bad ToUnicode CMap was encountered.
Definition edlerrors.h:71
@ EDL_ERR_KEY_SET_NON_RESOURCE
XPS input: Key attribute is set for an element that is not in the resource dictionary.
Definition edlerrors.h:115
@ EDL_ERR_LICENSE
Invalid serial number or licence provided.
Definition edlerrors.h:29
@ EDL_ERR_MORE_THAN_ONE_GROUP_ELEMENT
XPS input: Element contains more than one subelement.
Definition edlerrors.h:143
@ EDL_ERR_PROPERTY_ALREADY_SET
XPS input: Attempt to set the same property twice.
Definition edlerrors.h:113
@ EDL_ERR_NULL_NODE
An unexpected null DOM node pointer was encountered.
Definition edlerrors.h:90
@ EDL_ERR_PROCESS_CONTENT_NOT_DECLARED_IGNORABLE
XPS input: Namespace in ProcessContent attribute is not declared as ignorable.
Definition edlerrors.h:146
@ JM_ERR_WIDGET_NOT_FOUND
The given widget annotation or annotation reference could not be found.
Definition edlerrors.h:60
@ EDL_ERR_INVALID_IMAGE
XPS input: Invalid image encountered.
Definition edlerrors.h:132
@ EDL_ERR_MULTIPLE_COREPROPERTIES_RELS
XPS input: Multiple CoreProperty relationships encountered.
Definition edlerrors.h:138
@ JM_ERR_PDF_OBJECT_NOT_FOUND
An expected PDF object was not found.
Definition edlerrors.h:78
@ JM_ERR_GENERAL
A general error occurred. Additional information will be provided with the exception.
Definition edlerrors.h:50
@ EDL_ERR_REMOTERESOURCE_REF
XPS input: Remote resource dictionary references another remote resource dictionary.
Definition edlerrors.h:114
@ EDL_ERR_UNSUPPORTED_GLYPHS
XPS input: Unsupported glyphs encountered.
Definition edlerrors.h:116
@ EDL_ERR_INVALID_COLOR_SPECIFICATION
XPS input: Invalid color specification encountered.
Definition edlerrors.h:145
@ EDL_ERR_XPS_FROM_ENCRYPTED_SOURCE
XPS output: Attempt to create XPS from an encrypted document.
Definition edlerrors.h:152
@ JM_ERR_DUPLICATE_WIDGET
A widget with a duplicate reference was not found.
Definition edlerrors.h:59
@ EDL_ERR_OPENFORWRITE
Open file for write failed.
Definition edlerrors.h:35
@ JM_ERR_SYMBOLSET_NOT_FOUND
The requested PCL or PCL/XL symbol set was not found.
Definition edlerrors.h:77
@ EDL_ERR_BAD_DIMENSIONS
Bad dimensions specified for an object.
Definition edlerrors.h:89
@ JM_ERR_OPTIONAL_CONTENT_GROUP_NOT_FOUND
The requested optional content group was not found.
Definition edlerrors.h:72
@ EDL_ERR_INTERNAL_RIP
Internal RIP error.
Definition edlerrors.h:164
@ EDL_ERR_BROKEN_ELEMENT_SEQUENCE
XPS input: Broken element sequence encountered.
Definition edlerrors.h:130
@ EDL_ERR_UNEXPECTED_RESOURCE
XPS output: Unexpected resource encountered.
Definition edlerrors.h:150
@ EDL_ERR_TYPE3_GLYPH_NOT_FOUND
A Type 3 glyph was not found.
Definition edlerrors.h:95
@ EDL_ERR_INVALID_DOM_ID
An invalid DOMid was encountered.
Definition edlerrors.h:93
@ EDL_ERR_APPEND_EMPTY_ANNOTATION
Definition edlerrors.h:160
@ EDL_ERR_MULTIPLE_THUMBNAIL_RELS
XPS input: Multiple thumbnail relationships encountered.
Definition edlerrors.h:140
@ EDL_ERR_INVALID_TYPE3_GLYPH
An invalid Type 3 Glyph was encountered.
Definition edlerrors.h:94
@ EDL_ERR_LARGE_FILE
File too large.
Definition edlerrors.h:34
@ JM_ERR_FONT_NOT_FOUND
The requested font was not found.
Definition edlerrors.h:66
@ JM_ERR_TTF_INSTRUCTIONS
Invalid TrueType instructions were encountered.
Definition edlerrors.h:83
@ JM_ERR_PCLXL
PCL/XL Processing error.
Definition edlerrors.h:74
@ EDL_ERR_DTD_CONTENT
XPS input: DTD content detected.
Definition edlerrors.h:110
@ EDL_ERR_DUPLICATE_URI
XPS input: Duplicate URI encountered.
Definition edlerrors.h:147
@ EDL_ERR_INVALID_GLYPHS
An invalid Glyphs node was encountered.
Definition edlerrors.h:96
@ EDL_ERR_LICENSE_EXPIRED
Definition edlerrors.h:198