Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
ErrorCodeIMPC.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Errors code used when import Documents
8  * @class ErrorCodeIMPC
9  * @brief List all error for import documents
10  * @see ErrorCode
11  */
13 {
14  /**
15  * @errorCode Only valid format can be used to parameter export
16  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
17  */
18  const IMPC0001 = 'IMPORT : import Xml extract : file "%s" not found.';
19  /**
20  * @errorCode Only valid format can be used to parameter export
21  * @see Dcp\Core\ImportXml::importSingleXmlFile
22  */
23  const IMPC0002 = 'IMPORT : Cannot create directory "%s" for xml import.';
24  /**
25  * @errorCode Only valid format can be used to parameter export
26  * @see Dcp\Core\ImportXml::importZipFile
27  */
28  const IMPC0003 = 'IMPORT : Cannot create directory "%s" for xml zip import.';
29  /**
30  * @errorCode Only valid format can be used to parameter export
31  * @see Dcp\Core\ImportXml::importZipFile
32  */
33  const IMPC0004 = 'IMPORT : Cannot unzip file "%s" : %s.';
34  /**
35  * @errorCode Filename's title must not contain the directory separator char (e.g. '/')
36  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
37  */
38  const IMPC0005 = "Directory separator char ('%s') not allowed in filename '%s'.";
39  /**
40  * @errorCode Could not create the MediaIndex directory (possible causes: path already exists, missing free disk space, etc.)
41  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
42  */
43  const IMPC0006 = "Error creating MediaIndex directory '%s': %s";
44  /**
45  * @errorCode The MediaDir exists but is not adirectory (possible causes: path already exists but is a file (race-condition?), etc.)
46  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
47  */
48  const IMPC0007 = "MediaIndex directory '%s' is not a directory.";
49  /**
50  * @errorCode The output file could not be opended for writing (possible causes: missing free disk space, erroneous right/ownership on parent dir, etc.)
51  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
52  */
53  const IMPC0008 = "Error opening file '%s' for writing.";
54  /**
55  * @errorCode
56  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
57  */
58  const IMPC0009 = "Error opening file '%s' for reading.";
59  /**
60  * @errorCode
61  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
62  */
63  const IMPC0010 = "Error opening file '%s' for writing.";
64  /**
65  * @errorCode
66  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
67  */
68  const IMPC0011 = "Error renaming '%s' to '%s'.";
69  /**
70  * @errorCode
71  * @see Dcp\Core\ImportXml::extractFileFromXmlDocument
72  */
73  const IMPC0012 = "Error writing content to '%s'.";
74 }
List all error for import documents.
← centre documentaire © anakeen