Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hexinject, HTML5] uncaught exceptions are no being logged to console, if it happens during getInstance #311

Open
CrazyFlasher opened this issue Jan 14, 2020 · 2 comments

Comments

@CrazyFlasher
Copy link

No description provided.

@CrazyFlasher CrazyFlasher changed the title [HTML5] uncaught exceptions are no being logged to console, if it happens during getInstance [hexinject, HTML5] uncaught exceptions are no being logged to console, if it happens during getInstance Jan 14, 2020
@CrazyFlasher
Copy link
Author

CrazyFlasher commented Jan 15, 2020

Simple example

var instance:MyCoolInstance  = injector.instantiateUnmapped(MyCoolInstance);
...
class MyCoolInstance
{
     @PostConstruct
     public function init():Void
     {
           throw new Error("error);
     }
}

UPD:
What is the reason of bottom catch of instantiateUnmapped in Injector?

try
		{
			if ( instance.acceptInjector != null )
			{
				this._applyInjection( instance, type );
			}
		}
		catch ( e : MissingMappingException )
		{
			throw( e );
		}
		catch ( e : Dynamic )
		{
			//Do nothing
		}

@CrazyFlasher
Copy link
Author

DoclerLabs/hexInject#80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant