-
Notifications
You must be signed in to change notification settings - Fork 27
Erfurt Exception Code (was: Erfurt Developer Documentation; in wiki.aksw.org)
Natanael Arndt edited this page Sep 14, 2015
·
1 revision
==Erfurt Developer Documentation==
{{toc}} ===ErfurtApp and Access Control===
- get the DefaultStore
- in controllers: $this->_erfurtStore or $this->_erfurtApp->getStore()
- in other classes: Zend_Registry::get('erfurt')->getStore()
- use AC
- in controllers: $this->_erfurtApp->getAc()
- in other classes: Zend_Registry::get('erfurt')->getAc()
- authentification
- get the identity: $identity = Zend_Auth::getInstance()->getIdentity();
- and check against anonymous: $identity['anonymous'] === false
===Migration from ZF 0.9.3 to ZF 1.0.0 RC2===
- use in all controllers $this->_log->(info|emerg|debug|...)(); instead of Zend_Log::log()
- a new ViewRenderer is implemented
===Exception Codes===
- every api area has a number range (1000-1999, 2000-2999)
- 1000-1999 are non-critical errors (application can run; rendered as info)
- 2000-2999 are critical errors (application cannot run; rendered as errors)
====Common Exception Codes 1000-1099 and 2000-2099====
- 2001 - unsupported PHP version
- 2002 - failed to send email. mail feature for php may not be configured.
====Ac 1100-1199====
- 1101 - Default.php - wrong type submitted
- 1102 - Default.php - wrong perm type submitted
- 1103 - Default.php - no valid user given
- 1150 - Statements/Abstract.php - missing rules data for check
====App 1200-1299====
- 1205 - Default.php - no valid user data
- 1206 - Default.php - login for user not permitted ====Auth 1300-1399====
- 1300 - user already registered
- 1301 - email address already registered
- 1302 - invalid email address (validated by Zend_Validate_EmailAddress)
- 1303 - register action not allowed for user
- 1304 - invalid characters in username
- 1305 - password not matching and/or too short (min. 5 characters)
- 1306 - invalid characters in password ====Owl 1400-1499==== ====Rdfs 1500-1599====
- 1501 - model.php - no right to execute remove method
- 1502 - model.php - no right to execute add method ====Sparql 1600-1699====
- 1601 - Sparql execution error
- 1602 - Query Request Refused (in Endpoint)
- 1603 - Malformed Query (in Endpoint) ====Store 1700-1799 and 2700-2799 ====
- 1701 - requested model not found in database or not readable
- 1702 - no view permissions on model
- 1703 - model with that uri already exists
- 1704 - file not readable
- 1705 - failed to open URL
- 2701 - Database connection error
- 2702 - Tables not found
- 2703 - Schema too old.. No schema version available
- 2704 - Schema was migrated. ====Syntax 1800-1899==== ====Util 1900-1999====
===Info Codes for Logging/Debugging===
- every api area has a number range (100-199, 200-299)
- usage in Zend Logging Framework (info streamer) ====Common Info Codes 1000-1099==== ====Ac 1100-1199==== ====App 1200-1299==== ====Auth 1300-1399==== ====Owl 1400-1499==== ====Rdfs 1500-1599==== ====Sparql 1600-1699==== ====Store 1700-1799==== ====Syntax 1800-1899==== ====Util 1900-1999====
===TODO===
- change default sysont uri in erfurt_ac_default if sparql with import model work