Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- class e extends \ILLI\Core\Exception\Exception
- {
- const CODE_MyError = 40005;
- const MyError = 'foobar, {{{placeholder}}}';
- }
- try
- {
- throw new e(e::CODE_MyError, ['placeholder' => 'Hello World!']);
- }
- catch(e $e)
- {
- var_dump($e);
- }
- ?>
- object(localhost\illiFW\dev\e)#16 (12) {
- ["message":protected]=>
- string(20) "foobar, Hello World!"
- ["string":"Exception":private]=>
- string(0) ""
- ["code":protected]=>
- int(40005)
- ["file":protected]=>
- string(9) "index.php"
- ["line":protected]=>
- int(52)
- ["trace":"Exception":private]=>
- array(0) {
- }
- ["previous":"Exception":private]=>
- NULL
- ["__tObject_Hash":"ILLI\Core\Exception\Exception":private]=>
- NULL
- ["__tField":protected]=>
- array(6) {
- ["previous"]=>
- array(1) {
- ["contains"]=>
- &NULL
- }
- ["renderer"]=>
- array(1) {
- ["contains"]=>
- &object(ILLI\Core\Exception\ExceptionMessage)#37 (16) {
- ["__tObject_Hash":"ILLI\Core\Object":private]=>
- string(32) "000000001a03036a000000003fdaa7bc"
- ["__tField":protected]=>
- array(0) {
- }
- ["__tField_LockRegistration":"ILLI\Core\Object":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Object":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Object":private]=>
- NULL
- ["__tMethod":"ILLI\Core\Object":private]=>
- array(0) {
- }
- ["__tMethod_Hash":"ILLI\Core\Object":private]=>
- NULL
- ["__tAdapter_tracesEnabled":"ILLI\Core\Object":private]=>
- bool(false)
- ["__tAdapter_traces":"ILLI\Core\Object":private]=>
- array(0) {
- }
- ["__tAdapter_hook":protected]=>
- array(0) {
- }
- ["__tFilter_tracesEnabled":"ILLI\Core\Object":private]=>
- bool(false)
- ["__tFilter_traces":"ILLI\Core\Object":private]=>
- array(0) {
- }
- ["__tFilter_hook":protected]=>
- array(0) {
- }
- ["__tObserver_tracesEnabled":"ILLI\Core\Object":private]=>
- bool(false)
- ["__tObserver_traces":"ILLI\Core\Object":private]=>
- array(0) {
- }
- ["__tObserver_hook":protected]=>
- array(0) {
- }
- }
- }
- ["arguments"]=>
- array(1) {
- ["contains"]=>
- &array(1) {
- ["placeholder"]=>
- string(12) "Hello World!"
- }
- }
- ["unparsed"]=>
- array(1) {
- ["contains"]=>
- &string(25) "foobar, {{{placeholder}}}"
- }
- ["code"]=>
- array(1) {
- ["contains"]=>
- &int(40005)
- }
- ["message"]=>
- array(1) {
- ["contains"]=>
- &NULL
- }
- }
- ["__tField_LockRegistration":"ILLI\Core\Exception\Exception":private]=>
- bool(false)
- ["__tField_LockAllFields":"ILLI\Core\Exception\Exception":private]=>
- bool(false)
- ["__tField_Hash":"ILLI\Core\Exception\Exception":private]=>
- string(32) "000000001a03035f000000003fdbc2fc"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement