*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright Copyright (c) 2015 City Developer Team
* @license GNU GPL 3.0 or any newer version
*
* This program is free software: you can redistribute it and/or modify
*/
// The node's own exception handler
-function tests_exception_handler ($exceptionInstance) {
+function city_exception_handler ($exceptionInstance) {
// Is it an object and a valid instance?
if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof FrameworkException)) {
// Init variable
// Invalid exception instance detected! Do *only* throw exceptions that
// extends our own exception 'FrameworkException' to get such nice
// outputs like above.
- print('exceptionInstance[]=' . gettype($exceptionInstance) . ' is invalid! Please inform the core developer team.');
+ print('exceptionInstance[]=' . gettype($exceptionInstance) . ' is invalid! Please inform the City developer team.');
}
}
);
// Log assert
+ die('message='.$message);
syslog(LOG_WARNING, $message);
// Throw an exception here
//set_error_handler('__errorHandler');
// Set the new handler
-set_exception_handler('tests_exception_handler');
+set_exception_handler('city_exception_handler');
// Init assert handling
assert_options(ASSERT_ACTIVE , TRUE);