Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

_getById handle unknown keys better #1331

Open
@vsavkin

Description

@vsavkin

Right now when invoked with an unknown key, _getById will throw new NoProviderError(null), which is not very helpful.

_getById(int keyId) {
  //switch ....
  throw new NoProviderError(DirectiveInjector._KEYS[keyId]);
}

This can be improved by changing NoProviderError to include the keyId in addition to the key itself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions