*
* @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0
- * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
+ * @copyright Copyright (c) 2007 - 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
* @license GNU GPL 3.0 or any newer version
*
* This program is free software: you can redistribute it and/or modify
// Output the message
print($message);
} else {
- // Invalid exception instance detected! Do *only* throw exceptions that
- // extends our own exception 'FrameworkException' to get such nice
- // outputs like above.
+ /*
+ * 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.');
}
}
);
// Log assert
+ die($message . PHP_EOL);
syslog(LOG_WARNING, $message);
// Throw an exception here
// Set error handler
//set_error_handler('__errorHandler');
-// Set the new handler
+// Set the exception handler
set_exception_handler('hub_exception_handler');
// Init assert handling
assert_options(ASSERT_WARNING , FALSE);
assert_options(ASSERT_BAIL , TRUE);
assert_options(ASSERT_QUIET_EVAL, FALSE);
+
+// Set assertion handler
assert_options(ASSERT_CALLBACK , '__assertHandler');
// [EOF]