Skip to content

Exception information is lost when fields cannot be injected #4

Description

@soumya92

Specifically, in line 87 of Feather.java:

catch (Exception e) {
  throw new FeatherException(String.format("Can't inject field %s in %s", field.getName(), target.getClass().getName()));
}

The caught exception is discarded. It would be preferable to set the caught exception as the cause by passing it in as the second argument to FeatherException.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions